JDK-8076178 : [macosx] Few open swing and awt reg-tests fail after their update to avoid SunToolkit.realSync
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 9
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: os_x
  • CPU: generic
  • Submitted: 2015-03-27
  • Updated: 2023-10-09
  • Resolved: 2015-08-31
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 9
9 b82Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Description
Testsuite name: Regression (jdk_swing)
Test name(s): javax/swing/JColorChooser/Test7194184.java
Product(s) tested: JDK 9b55(64-bit)
OS/architecture: MacOSX/x64

Error log file (if present): see comments

Reproducible: Always
Reproducible on machine: stt-mac-02.ru.oracle.com, stt-mac-05.ru.oracle.com

Is it a Regression: No(Test passes for JDK 9b43 but fails afterwards because test has been updated)
Regression introduced in release/build: N/A
Test result on the last GAed release for this train: 
Test result on FCS:  
Is it a platform specific issue: Yes (passes on Linux)
[If platform specific issue] Is it a new (previously unsupported) OS/browser/mode testing: No
[If new configuration testing] Issue specific to execution mode or OS/browser version: No

Exception/Error from Log:
----------System.err:(33/2060)----------
java.lang.reflect.InvocationTargetException
	at java.awt.EventQueue.invokeAndWait(EventQueue.java:1321)
	at java.awt.EventQueue.invokeAndWait(EventQueue.java:1296)
	at javax.swing.SwingUtilities.invokeAndWait(SwingUtilities.java:1440)
	at Test7194184.testKeyBoardAccess(Test7194184.java:89)
	at Test7194184.main(Test7194184.java:56)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:502)
	at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.RuntimeException: JColorChooser misses keyboard accessibility
	at Test7194184$2.run(Test7194184.java:94)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:301)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:759)
	at java.awt.EventQueue.access$500(EventQueue.java:97)
	at java.awt.EventQueue$3.run(EventQueue.java:712)
	at java.awt.EventQueue$3.run(EventQueue.java:706)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:729)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:190)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:115)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:104)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:100)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:92)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:81)

JavaTest Message: Test threw exception: java.lang.reflect.InvocationTargetException
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.reflect.InvocationTargetException

Test run log location:
Steps to reproduce: see comments
Comments
URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/d333f627323c User: lana Date: 2015-09-16 20:45:29 +0000
16-09-2015

URL: http://hg.openjdk.java.net/jdk9/client/jdk/rev/d333f627323c User: serb Date: 2015-08-31 14:07:47 +0000
31-08-2015

I will remove the workaround in Robot for osx, because of the number of failed tests here.
30-08-2015

RULE java/awt/Choice/UnfocusableCB_ERR/UnfocusableCB_ERR.java Exception java.lang.RuntimeException: Test failed:
08-07-2015

RULE javax/swing/Popup/TaskbarPositionTest.java Exception java.lang.RuntimeException: We do not match! java.awt.Rectangle[x=0,y=28,width=1024,height=712] / java.awt.Rectangle[x=0,y=0,width=0,height=0]
06-07-2015

RULE javax/swing/Popup/TaskbarPositionTest.java Exception java.lang.RuntimeException: We do not match! java.awt.Rectangle[x=0,y=28,width=1920,height=1024] / java.awt.Rectangle[x=0,y=0,width=0,height=0]
02-07-2015

RULE javax/swing/Popup/TaskbarPositionTest.java Exception java.lang.RuntimeException: We do not match! java.awt.Rectangle[x=0,y=23,width=1280,height=931] / java.awt.Rectangle[x=0,y=0,width=0,height=0]
11-06-2015

RULE javax/swing/Popup/TaskbarPositionTest.java Exception java.lang.RuntimeException: We do not match! java.awt.Rectangle[x=0,y=23,width=1280,height=933] / java.awt.Rectangle[x=0,y=0,width=0,height=0]
03-06-2015

RULE javax/swing/Popup/TaskbarPositionTest.java Exception java.lang.RuntimeException: We do not match! java.awt.Rectangle[x=0,y=23,width=1280,height=925] / java.awt.Rectangle[x=0,y=0,width=0,height=0]
22-05-2015

RULE javax/swing/Popup/TaskbarPositionTest.java Exception java.lang.RuntimeException: We do not match! java.awt.Rectangle[x=65,y=24,width=959,height=744] / java.awt.Rectangle[x=0,y=0,width=0,height=0]
06-05-2015

Oh yes, Robot.waitForIdle() doesn't use realSync() on Mac, so certain delays may help with these tests.
27-03-2015

Adding RULEs for aurora matching: RULE javax/swing/JColorChooser/Test7194184.java Exception java.lang.RuntimeException: JColorChooser misses keyboard accessibility RULE javax/swing/JColorChooser/Test7194184.java Exception java.lang.reflect.InvocationTargetException RULE javax/swing/JComboBox/8032878/bug8032878.java Exception java.lang.RuntimeException: Expected value in JComboBox editor 'one123' but found ''. RULE javax/swing/JFileChooser/8002077/bug8002077.java Exception java.lang.RuntimeException: Save button is not pressed! RULE javax/swing/JMenu/4515762/bug4515762.java Exception java.lang.RuntimeException: Action has not been received RULE javax/swing/JMenu/4692443/bug4692443.java Exception java.lang.RuntimeException: Test failed. RULE javax/swing/JMenuBar/4750590/bug4750590.java Exception java.lang.RuntimeException: Test FAILED! RULE javax/swing/JTextField/8036819/bug8036819.java Exception java.lang.RuntimeException: Test failed. RULE javax/swing/Popup/TaskbarPositionTest.java Exception java.lang.RuntimeException: We do not match! java.awt.Rectangle[x=0,y=22,width=1280,height=932] / java.awt.Rectangle[x=0,y=0,width=0,height=0] RULE javax/swing/RepaintManager/IconifyTest/IconifyTest.java Exception java.lang.Exception: Test failed: window was not iconified. RULE javax/swing/text/html/HTMLEditorKit/5043626/bug5043626.java Exception java.lang.RuntimeException: Begin line action set cursor inside <head> tag
27-03-2015

All the failed test cases are passing for JDK 9b55 if we use sun.awt.SunToolkit.realSync().
27-03-2015