United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-8003982 new test javax/swing/AncestorNotifier/7193219/bug7193219.java failed on macosx
JDK-8003982 : new test javax/swing/AncestorNotifier/7193219/bug7193219.java failed on macosx

Details
Type:
Bug
Submit Date:
2012-11-26
Status:
Closed
Updated Date:
2013-12-17
Project Name:
JDK
Resolved Date:
2012-12-21
Component:
client-libs
OS:
os_x
Sub-Component:
java.awt
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
7u40
Fixed Versions:
7u40 (b08)

Related Reports
Backport:
Backport:
Backport:
Backport:
Backport:
Relates:

Sub Tasks

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
Please look at this.
It relates to your fix of
JDK-7193219 JComboBox serialization fails in JDK 1.7 
                                     
2012-11-27
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.
                                     
2012-12-04
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.
                                     
2012-12-05
URL:   http://hg.openjdk.java.net/jdk7u/jdk7u-dev/jdk/rev/2d482e463c7e
User:  alexp
Date:  2012-12-21 14:54:38 +0000

                                     
2012-12-21
URL:   http://hg.openjdk.java.net/jdk7u/jdk7u/jdk/rev/2d482e463c7e
User:  lana
Date:  2012-12-28 18:30:44 +0000

                                     
2012-12-28
sqe got waiver on verification of sync bugs

The issue was verified in 7u21 or/and 7u25.
                                     
2013-07-01
closed as verified: works finde with 7u40b25 on macosx
                                     
2013-08-19



Hardware and Software, Engineered to Work Together