JDK-8081764 : [TEST_BUG] Test javax/swing/plaf/aqua/CustomComboBoxFocusTest.java fails on Windows, Solaris Sparcv9 and Linux but passes on MacOSX
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 8u60,9
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux,solaris
  • CPU: generic
  • Submitted: 2015-06-02
  • Updated: 2021-05-25
  • Resolved: 2015-08-13
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 8 JDK 9 Other
8u301Fixed 9 b80Fixed openjdk8u302Fixed
Related Reports
Relates :  
Description
Test name(s):javax/swing/plaf/aqua/CustomComboBoxFocusTest.java

JDK tested: 9b65 
OS tested: Solaris Sparcv9, Linux 
Is it a regression? No 
Regression introduced in release/build:N/A
Is it platform specific? Yes (Passes in MacOSX)
The is failure reproduced: always 
           
General description: 

----------System.out:(11/377)----------
Wait for screenshots...
Request focus on reference
Capture sceeenshot of reference
Target bounds: java.awt.Rectangle[x=0,y=44,width=137,height=24]
Target location: java.awt.Point[x=6,y=96]
Request focus on custom
Capture sceeenshot of custom
Target bounds: java.awt.Rectangle[x=0,y=88,width=137,height=24]
Target location: java.awt.Point[x=6,y=140]
Done
Compare screenshots...
----------System.err:(13/720)----------
java.lang.RuntimeException: Test failed.
	at CustomComboBoxFocusTest.main(CustomComboBoxFocusTest.java:80)
	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.agent.MainWrapper$MainThread.run(MainWrapper.java:92)
	at java.lang.Thread.run(Thread.java:745)

JavaTest Message: Test threw exception: java.lang.RuntimeException: Test failed.
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Test failed.


Comments
Fix Request (8u) I would like to backport this patch to 8u for parity with Oracle 8u301. The original patch applies cleanly.
24-05-2021

Updated webrev link :- http://cr.openjdk.java.net/~pchopra/8081764/webrev.01/
29-07-2015

http://cr.openjdk.java.net/~pchopra/8081764/webrev.00/
08-06-2015

I think test should be run for Mac and for others it should be ignored.
04-06-2015

It seems to be a test bug .Test in introduced in 9b65 as part of JDK-8073001
02-06-2015

Machine : stt-73.ru.oracle.com User: gtee Pass : Gt33acct http://aurora-ds3.us.oracle.com:9502/runs/912028.ManualSubmit-1/workDir/javax/swing/plaf/aqua/CustomComboBoxFocusTest.jtr RULE javax/swing/plaf/aqua/CustomComboBoxFocusTest.java Exception java.lang.RuntimeException: Test failed.
02-06-2015