JDK-8272105 : TestButtonGroupFocusTraversal.java fails in 8u
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 8u311
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • Submitted: 2021-08-06
  • Updated: 2022-02-09
  • Resolved: 2022-01-10
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
7u351Fixed 8u331 b02Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Description
The test test/javax/swing/ButtonGroup/TestButtonGroupFocusTraversal.java fails in Java 8 because the focus moves to button 1 instead of button 2 which is selected.

The test is brought into 8 by backporting JDK-8249548.

The current focus behaviour with ButtonGroup is incorrect in 8u: the first button in the group always receives focus whereas the selected button should receive focus.
Comments
The test failure is resolved by JDK-8074883.
09-02-2022