From paul_t100 at fastmail.fm Thu Jul 23 10:19:54 2015 From: paul_t100 at fastmail.fm (Paul Taylor) Date: Thu, 23 Jul 2015 11:19:54 +0100 Subject: java.lang.NoSuchMethodError: createImageUsingNativeSize error in 1.8.0_45 Message-ID: <55B0BFCA.4030305@fastmail.fm> This code that was used in some circumstances for dealing with single images dragged and drop from certain webbrowsers (firefox) gave no issues in 1.8.0_25 image = (Image) trans.getTransferData("image/x-java-image;class=java.awt.Image"); but now in 1.8.0_45 causing java.lang.NoSuchMethodError: createImageUsingNativeSize at sun.lwawt.macosx.CDataTransferer.getImageForByteStream(Native Method) at sun.lwawt.macosx.CDataTransferer.platformImageBytesToImage(CDataTransferer.java:238) at sun.awt.datatransfer.DataTransferer.translateBytes(DataTransferer.java:1659) at sun.lwawt.macosx.CDataTransferer.translateBytes(CDataTransferer.java:142) at sun.awt.dnd.SunDropTargetContextPeer.getTransferData(SunDropTargetContextPeer.java:269) at sun.awt.datatransfer.TransferableProxy.getTransferData(TransferableProxy.java:73) at java.awt.dnd.DropTargetContext$TransferableProxy.getTransferData(DropTargetContext.java:376) at com.jthink.jaikoz.draganddrop.ImageHandler.createImageCell(ImageHandler.java:30) Is this a bug in the new version of OSX Java or am I simply doing something wrong, is there a simple workaround ? Paul From paul_t100 at fastmail.fm Thu Jul 23 11:27:40 2015 From: paul_t100 at fastmail.fm (Paul Taylor) Date: Thu, 23 Jul 2015 12:27:40 +0100 Subject: java.lang.NoSuchMethodError: createImageUsingNativeSize error in 1.8.0_45 In-Reply-To: <55B0BFCA.4030305@fastmail.fm> References: <55B0BFCA.4030305@fastmail.fm> Message-ID: <55B0CFAC.3070301@fastmail.fm> On 23/07/2015 11:19, Paul Taylor wrote: > This code that was used in some circumstances for dealing with single > images dragged and drop from certain webbrowsers (firefox) gave no > issues in 1.8.0_25 > > image = (Image) > trans.getTransferData("image/x-java-image;class=java.awt.Image"); > > but now in 1.8.0_45 causing > > java.lang.NoSuchMethodError: createImageUsingNativeSize > at sun.lwawt.macosx.CDataTransferer.getImageForByteStream(Native Method) > at > sun.lwawt.macosx.CDataTransferer.platformImageBytesToImage(CDataTransferer.java:238) > at > sun.awt.datatransfer.DataTransferer.translateBytes(DataTransferer.java:1659) > at > sun.lwawt.macosx.CDataTransferer.translateBytes(CDataTransferer.java:142) > at > sun.awt.dnd.SunDropTargetContextPeer.getTransferData(SunDropTargetContextPeer.java:269) > at > sun.awt.datatransfer.TransferableProxy.getTransferData(TransferableProxy.java:73) > at > java.awt.dnd.DropTargetContext$TransferableProxy.getTransferData(DropTargetContext.java:376) > at > com.jthink.jaikoz.draganddrop.ImageHandler.createImageCell(ImageHandler.java:30) > > Is this a bug in the new version of OSX Java or am I simply doing > something wrong, is there a simple workaround ? > > Paul > > > It seems to be https://bugs.openjdk.java.net/browse/JDK-8077016?page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#issue-tabs but breaking use of the clipboard for copy and pate of images is a massive bug dont you think, surely this should be a priority 1 bug as we are not talking about some obscure functionality here ? Paul From alexandr.scherbatiy at oracle.com Thu Jul 23 11:32:15 2015 From: alexandr.scherbatiy at oracle.com (Alexander Scherbatiy) Date: Thu, 23 Jul 2015 14:32:15 +0300 Subject: java.lang.NoSuchMethodError: createImageUsingNativeSize error in 1.8.0_45 In-Reply-To: <55B0CFAC.3070301@fastmail.fm> References: <55B0BFCA.4030305@fastmail.fm> <55B0CFAC.3070301@fastmail.fm> Message-ID: <55B0D0BF.2000508@oracle.com> Could you file an issue on it: http://bugreport.java.com/bugreport Thanks, Alexandr. On 7/23/2015 2:27 PM, Paul Taylor wrote: > On 23/07/2015 11:19, Paul Taylor wrote: >> This code that was used in some circumstances for dealing with single >> images dragged and drop from certain webbrowsers (firefox) gave no >> issues in 1.8.0_25 >> >> image = (Image) >> trans.getTransferData("image/x-java-image;class=java.awt.Image"); >> >> but now in 1.8.0_45 causing >> >> java.lang.NoSuchMethodError: createImageUsingNativeSize >> at sun.lwawt.macosx.CDataTransferer.getImageForByteStream(Native Method) >> at >> sun.lwawt.macosx.CDataTransferer.platformImageBytesToImage(CDataTransferer.java:238) >> at >> sun.awt.datatransfer.DataTransferer.translateBytes(DataTransferer.java:1659) >> at >> sun.lwawt.macosx.CDataTransferer.translateBytes(CDataTransferer.java:142) >> at >> sun.awt.dnd.SunDropTargetContextPeer.getTransferData(SunDropTargetContextPeer.java:269) >> at >> sun.awt.datatransfer.TransferableProxy.getTransferData(TransferableProxy.java:73) >> at >> java.awt.dnd.DropTargetContext$TransferableProxy.getTransferData(DropTargetContext.java:376) >> at >> com.jthink.jaikoz.draganddrop.ImageHandler.createImageCell(ImageHandler.java:30) >> >> Is this a bug in the new version of OSX Java or am I simply doing >> something wrong, is there a simple workaround ? >> >> Paul >> >> >> > It seems to be > https://bugs.openjdk.java.net/browse/JDK-8077016?page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#issue-tabs > but breaking use of the clipboard for copy and pate of images is a > massive bug dont you think, surely this should be a priority 1 bug as > we are not talking about some obscure functionality here ? > > Paul > > From alexandr.scherbatiy at oracle.com Thu Jul 23 11:46:25 2015 From: alexandr.scherbatiy at oracle.com (Alexander Scherbatiy) Date: Thu, 23 Jul 2015 14:46:25 +0300 Subject: java.lang.NoSuchMethodError: createImageUsingNativeSize error in 1.8.0_45 In-Reply-To: <55B0D0BF.2000508@oracle.com> References: <55B0BFCA.4030305@fastmail.fm> <55B0CFAC.3070301@fastmail.fm> <55B0D0BF.2000508@oracle.com> Message-ID: <55B0D411.9090907@oracle.com> It looks like known issue JDK-8077016 [macosx] Image transfer through System Clipboard is broken in 1.8.0_40 on Mac OS X https://bugs.openjdk.java.net/browse/JDK-8077016 Thanks, Alexandr. On 7/23/2015 2:32 PM, Alexander Scherbatiy wrote: > > Could you file an issue on it: http://bugreport.java.com/bugreport > > Thanks, > Alexandr. > > On 7/23/2015 2:27 PM, Paul Taylor wrote: >> On 23/07/2015 11:19, Paul Taylor wrote: >>> This code that was used in some circumstances for dealing with >>> single images dragged and drop from certain webbrowsers (firefox) >>> gave no issues in 1.8.0_25 >>> >>> image = (Image) >>> trans.getTransferData("image/x-java-image;class=java.awt.Image"); >>> >>> but now in 1.8.0_45 causing >>> >>> java.lang.NoSuchMethodError: createImageUsingNativeSize >>> at sun.lwawt.macosx.CDataTransferer.getImageForByteStream(Native >>> Method) >>> at >>> sun.lwawt.macosx.CDataTransferer.platformImageBytesToImage(CDataTransferer.java:238) >>> at >>> sun.awt.datatransfer.DataTransferer.translateBytes(DataTransferer.java:1659) >>> at >>> sun.lwawt.macosx.CDataTransferer.translateBytes(CDataTransferer.java:142) >>> at >>> sun.awt.dnd.SunDropTargetContextPeer.getTransferData(SunDropTargetContextPeer.java:269) >>> at >>> sun.awt.datatransfer.TransferableProxy.getTransferData(TransferableProxy.java:73) >>> at >>> java.awt.dnd.DropTargetContext$TransferableProxy.getTransferData(DropTargetContext.java:376) >>> at >>> com.jthink.jaikoz.draganddrop.ImageHandler.createImageCell(ImageHandler.java:30) >>> >>> Is this a bug in the new version of OSX Java or am I simply doing >>> something wrong, is there a simple workaround ? >>> >>> Paul >>> >>> >>> >> It seems to be >> https://bugs.openjdk.java.net/browse/JDK-8077016?page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#issue-tabs >> but breaking use of the clipboard for copy and pate of images is a >> massive bug dont you think, surely this should be a priority 1 bug as >> we are not talking about some obscure functionality here ? >> >> Paul >> >> > From paul_t100 at fastmail.fm Fri Jul 24 14:38:21 2015 From: paul_t100 at fastmail.fm (Paul Taylor) Date: Fri, 24 Jul 2015 15:38:21 +0100 Subject: java.lang.NoSuchMethodError: createImageUsingNativeSize error in 1.8.0_45 In-Reply-To: <55B0D411.9090907@oracle.com> References: <55B0BFCA.4030305@fastmail.fm> <55B0CFAC.3070301@fastmail.fm> <55B0D0BF.2000508@oracle.com> <55B0D411.9090907@oracle.com> Message-ID: <55B24DDD.7060509@fastmail.fm> On 23/07/2015 12:46, Alexander Scherbatiy wrote: > > It looks like known issue JDK-8077016 [macosx] Image transfer > through System Clipboard is broken in 1.8.0_40 on Mac OS X > https://bugs.openjdk.java.net/browse/JDK-8077016 > and it fails this test https://bugs.openjdk.java.net/browse/JDK-8037371 so begs the question how did it get released in the first place ! From alexandr.scherbatiy at oracle.com Mon Jul 27 12:30:04 2015 From: alexandr.scherbatiy at oracle.com (Alexander Scherbatiy) Date: Mon, 27 Jul 2015 15:30:04 +0300 Subject: Public API for internal Swing classes. Message-ID: <55B6244C.8040002@oracle.com> According to the JEP 200: The Modular JDK (see http://openjdk.java.net/jeps/200) we expect that the standard Java SE modules will not export any internal packages. It means that classes from internal packages (like sun.swing) will not be accessible. For example: sun.swing.FilePane sun.swing.SwingUtilities2 sun.swing.sun.swing.plaf.synth.SynthIcon and others. Please, let us known if you are using the internal Swing API and it is not possible to replace it by public API. There are some known requests: JDK-8132119 Provide public API for text related methods in SwingUtilities2 https://bugs.openjdk.java.net/browse/JDK-8132119 JDK-8132120 Provide public API for screen menu bar support on MacOS https://bugs.openjdk.java.net/browse/JDK-8132120 JDK-6274842 RFE: Provide a means for a custom look and feel to use desktop font antialiasing settings. https://bugs.openjdk.java.net/browse/JDK-6274842 If you don't know if you use these types (because you use 3rd party jars) you can use the JDK 8 "jdeps" tool to find such dependencies :- ~/jdk1.8/bin/jdeps Usage: jdeps where can be a pathname to a .class file, a directory, a JAR file, or a fully-qualified class name Thanks, Alexandr. From Koen.VanDenBorre at esko.com Mon Jul 27 13:13:50 2015 From: Koen.VanDenBorre at esko.com (Van Den Borre, Koen) Date: Mon, 27 Jul 2015 13:13:50 +0000 Subject: Public API for internal Swing classes. In-Reply-To: <55B6244C.8040002@oracle.com> References: <55B6244C.8040002@oracle.com> Message-ID: <01A824C2-C046-4B29-B8E3-D98A6D980EE0@esko.com> Hey, We are using sun.swing.UIAction in a custom ListUI where we override the following method and use the sender object: @Override public boolean isEnabled(Object sender) Regards, Koen On 27 Jul 2015, at 14:30, Alexander Scherbatiy wrote: > > According to the JEP 200: The Modular JDK (see http://openjdk.java.net/jeps/200) > we expect that the standard Java SE modules will not export any internal packages. > > It means that classes from internal packages (like sun.swing) will not be accessible. > > For example: > sun.swing.FilePane > sun.swing.SwingUtilities2 > sun.swing.sun.swing.plaf.synth.SynthIcon > and others. > > > Please, let us known if you are using the internal Swing API and it is not possible to replace it by public API. > > There are some known requests: > > JDK-8132119 Provide public API for text related methods in SwingUtilities2 > https://bugs.openjdk.java.net/browse/JDK-8132119 > > JDK-8132120 Provide public API for screen menu bar support on MacOS > https://bugs.openjdk.java.net/browse/JDK-8132120 > > JDK-6274842 RFE: Provide a means for a custom look and feel to use desktop font antialiasing settings. > https://bugs.openjdk.java.net/browse/JDK-6274842 > > > If you don't know if you use these types (because you use 3rd party jars) > you can use the JDK 8 "jdeps" tool to find such dependencies :- > > ~/jdk1.8/bin/jdeps > Usage: jdeps > where can be a pathname to a .class file, a directory, a JAR > file, or a fully-qualified class name > > Thanks, > Alexandr. > From mik3hall at gmail.com Fri Jul 31 21:26:04 2015 From: mik3hall at gmail.com (Michael Hall) Date: Fri, 31 Jul 2015 16:26:04 -0500 Subject: Quaqua Message-ID: <6214DFB2-4C2F-4A7B-AD60-B902B52AD352@gmail.com> If of interest to anyone I happened to stumble across this and took a look for some reason? http://www.randelshofer.ch/quaqua/ Downloads Version 9 For Java SE 6 ? 8 on OS X 10.5 ? 10.9. Supports Intel Macs. Michael Hall