JDK-8043705 : Can't exit color chooser dialog when running as an applet
Type:Bug
Component:client-libs
Sub-Component:javax.swing
Affected Version:9
Priority:P3
Status:Resolved
Resolution:Fixed
Submitted:2014-05-22
Updated:2014-07-29
Resolved:2014-06-18
The Version table provides details related to the release that this issue/RFE will be addressed.
Unresolved : Release in which this issue/RFE will be addressed. Resolved: Release in which this issue/RFE has been resolved. Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.
With 9 b13 start SwingSet2 as an applet then start the ColorChooser Demo then click on the Background button then try to exit the dialog.
Comments
Why did not integrated into promoted build?
02-07-2014
The JDK 7u60 contains fix for the issue JDK-8042590 which checks that AppContext is not null. This prevents NPE for the modal dialog closing.
I run SwingSet2 with JRE 1.7.0_65-b30 and the issue is not reproduced.
There is no need to backport the fix to JDK 7u.
26-06-2014
The fix will be in 8u20 b20 and 9 b21
20-06-2014
CAP member had verified it was not fixed in JDK 9 b18 yet. seems it is still in master workspace and not integrated into release build yet.
20-06-2014
Hi Ting-Yun, I see 8043705 under the b15 tag of http://hg.openjdk.java.net/jdk9/client/jdk but I don't see 8043705 anywhere in http://hg.openjdk.java.net/jdk9/jdk9/jdk (Master, which is now up to b18) so I'm guessing it's not integrated yet.
18-06-2014
still can reproduce the problem on 9 b16
18-06-2014
This doesn't appear to be fixed in 9 b16 using Chrome 35. chrome://plugins shows the version as 12.0.2.16.
17-06-2014
closing the ColorChooser dialog in applet throws the exception:
---------------------------------------
cache: Clean up the reference queue: SwingSet2/SwingSet2.jar
cache: deregisterReference: com.sun.deploy.cache.MemoryCache$CachedResourceReference@15e9f500: 2
java.lang.NullPointerException
at sun.awt.windows.WWindowPeer.getActiveWindowHandles(Unknown Source)
at sun.awt.windows.WToolkit.eventLoop(Native Method)
at sun.awt.windows.WToolkit.run(Unknown Source)