JDK-8003982 : new test javax/swing/AncestorNotifier/7193219/bug7193219.java failed on macosx
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 7u40
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: os_x
  • CPU: generic
  • Submitted: 2012-11-26
  • Updated: 2013-12-17
  • Resolved: 2012-12-21
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.

To download the current JDK release, click here.
JDK 7 JDK 8
7u21Fixed 8Fixed
Related Reports
Relates :  
Description
new regression test failed only on macosx with jdk7u12, jdk7u11b05, jdk7u10b17 with following exception:
----------System.out:(0/0)----------
----------System.err:(171/12165)----------
java.lang.reflect.InvocationTargetException
	at java.awt.EventQueue.invokeAndWait(EventQueue.java:1258)
	at javax.swing.SwingUtilities.invokeAndWait(SwingUtilities.java:1349)
	at bug7193219.main(bug7193219.java:76)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:601)
	at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
	at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.RuntimeException: java.io.NotSerializableException: com.apple.laf.AquaComboBoxUI
	at bug7193219.serializeGUI(bug7193219.java:58)
	at bug7193219.access$000(bug7193219.java:34)
	at bug7193219$1.run(bug7193219.java:79)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:241)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:721)
	at java.awt.EventQueue.access$200(EventQueue.java:103)
	at java.awt.EventQueue$3.run(EventQueue.java:682)
	at java.awt.EventQueue$3.run(EventQueue.java:680)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:691)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)



test works fine on windows x86 and linux amd64

see comments for more details
Comments
closed as verified: works finde with 7u40b25 on macosx
19-08-2013

sqe got waiver on verification of sync bugs The issue was verified in 7u21 or/and 7u25.
01-07-2013

It was learnt that incomplete support of serialization by "Mac OS X" look and feel (L&F) is a renowned issue, because of which JDK passes all JCK tests on OS X only with "Metal" L&F. "Metal" L&F is a cross-platform L&F, which is default for any Java application, therefore all Swing regression tests which are not related to another particular L&F, are written for "Metal" implicitly. Since only JDK for OS X changes "Metal" for "Mac OS X" by default, explicit setting of "Metal" L&F could be an acceptable workaround for correction of this test.
05-12-2012

The bug was reproduced on a local test Mac host. The regression test fails, because JComboBox component cannot be serialized. However experiments showed that JButton component could be serialized successfully. The reason of this bug is malfunctioning of serialization mechanism for Swing components in "Mac OS X" look and feel (L&F), which is used by default. Setting "Metal" L&F to the test case application by the following code: UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel"); successfully resolves this bug, while leaving the test being able to verify the fix (JDK-7193219), for which it was created.
04-12-2012

Please look at this. It relates to your fix of JDK-7193219 JComboBox serialization fails in JDK 1.7
27-11-2012