JDK-8270116 : Expand ButtonGroupLayoutTraversalTest.java to run in all LaFs, including Aqua on macOS
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 8u311,11,17
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2021-07-08
  • Updated: 2021-10-25
  • Resolved: 2021-08-05
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 11 JDK 17 JDK 18 JDK 8
11.0.14-oracleFixed 17.0.2Fixed 18 b10Fixed 8u321Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Relates :  
Description
JDK-8172509 resolved the test failure by changing the Look and Feel to Metal if it's Aqua or Nimbus.

At that time, it made sense because the new focus behaviour for radio buttons that was implemented in JDK-8033699 wasn't provided in Aqua LaF. Later fixes JDK-8208640 and JDK-8249548 brought it to Aqua.

Now the test java/awt/Focus/FocusTraversalPolicy/ButtonGroupLayoutTraversal/ButtonGroupLayoutTraversalTest.java should be expanded so that it runs in all the available Look and Feels to make sure the focus traversal is consistent.
Comments
Fix Request (11u): Should get backported for parity with 11.0.14-oracle. Applies cleanly. Test has passed on MacBook Pro M1 with Rosetta.
21-10-2021

Fix request 17u: This test bug improves test coverage of JRadioButton and JToggleButton focus handling in all Look-and-Feels without skipping Aqua and Nimbus LaFs.
23-09-2021

Changeset: cb368802 Author: Rajat Mahajan <rajat.m.mahajan@oracle.com> Committer: Alexey Ivanov <aivanov@openjdk.org> Date: 2021-08-05 17:41:33 +0000 URL: https://git.openjdk.java.net/jdk/commit/cb368802815c465f8eef7aa930d6cbb6540d0fa8
05-08-2021