JDK-8132770 : [TEST_BUG][macosx] Test javax/swing/JRadioButton/FocusTraversal/FocusTraversal.java fails in MacOSX
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 9
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: os_x
  • CPU: generic
  • Submitted: 2015-07-31
  • Updated: 2021-07-28
  • Resolved: 2015-11-17
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 JDK 9
7u331Fixed 8u311Fixed 9 b96Fixed
Related Reports
Relates :  
Description
Test name(s):javax/swing/JRadioButton/FocusTraversal/FocusTraversal.java

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

----------System.err:(32/2441)----------
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 FocusTraversal.main(FocusTraversal.java:107)
	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:504)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:92)
	at java.lang.Thread.run(Thread.java:746)
Caused by: java.lang.RuntimeException: Focus component is wrong after forward key javax.swing.JRadioButton[,90,6,40x23,alignmentX=0.0,alignmentY=0.5,border=com.apple.laf.AquaButtonBorder$Named@473028b,flags=288,maximumSize=,minimumSize=,preferredSize=,defaultIcon=,disabledIcon=,disabledSelectedIcon=,margin=javax.swing.plaf.InsetsUIResource[top=1,left=1,bottom=0,right=1],paintBorder=false,paintFocus=true,pressedIcon=,rolloverEnabled=false,rolloverIcon=,rolloverSelectedIcon=,selectedIcon=,text=b]
	at FocusTraversal$3.run(FocusTraversal.java:113)
	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:77)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:729)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:192)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:117)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:106)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:102)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:94)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:83)

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

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

Comments
Fix in test found
03-11-2015

The test is not eligible to run under look and feels that defines non-basic JRadioButton UI focus traversal behavior. Aqua LnF is one of them.
05-08-2015

It seems to be a testbug as test is newly introduced in 9b74 as part of fix JDK-8129940
31-07-2015

Machine : stt-mac-13.ru.oracle.com User/Pass : gtee/Gt33acct RULE javax/swing/JRadioButton/FocusTraversal/FocusTraversal.java Exception java.lang.RuntimeException: Focus component is wrong after forward key javax.swing.JRadioButton[,90,6,4...,alignmentX=0.0,alignmentY=0.5,border=com.apple.laf.AquaButtonBorder$Named...,flags=288,maximumSize=,minimumSize=,preferredSize=,defaultIcon=,disabledIcon=,disabledSelectedIcon=,margin=javax.swing.plaf.InsetsUIResource[top=1,left=1,bottom=0,right=1],paintBorder=false,paintFocus=true,pressedIcon=,rolloverEnabled=false,rolloverIcon=,rolloverSelectedIcon=,selectedIcon=,text=b] RULE javax/swing/JRadioButton/FocusTraversal/FocusTraversal.java Exception java.lang.reflect.InvocationTargetException http://aurora-ds3.us.oracle.com:9502/runs/01041/1041684.ManualSubmit/1041684.ManualSubmit-1/workDir/javax/swing/JRadioButton/FocusTraversal/FocusTraversal.jtr
31-07-2015