JDK-8277759 : Extract ActionEvent testing from TestButtonGroupFocusTraversal.java
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 8u311,16
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2021-11-24
  • Updated: 2021-11-24
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.
Other
tbd_majorUnresolved
Related Reports
Relates :  
Relates :  
Description
The test TestButtonGroupFocusTraversal.java also verifies that ActionEvent is not sent for JToggleButtons and JCheckbox, only for JRadioButtons.

Currently, TestButtonGroupFocusTraversal.java is in problem list for 8u, see JDK-8272105. For this reason, the fix for JDK-8259237 cannot be verified automatically.

I propose extracting the part which verifies whether ActionEvent is raised into a separate test.
Comments
This issue mostly affects 8u because the TestButtonGroupFocusTraversal.java test can't be run; if it's run, it fails. To facilitate testing the scenario in 8u, it would be good to separate different scenarios tested into different test cases.
24-11-2021