JDK-8342524 : Use latch in AbstractButton/bug6298940.java instead of delay
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 6,8,23
  • Priority: P5
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2024-10-17
  • Updated: 2025-03-20
  • Resolved: 2025-02-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 11 JDK 17 JDK 21 JDK 24 JDK 25 JDK 8
11.0.28-oracleFixed 17.0.16-oracleFixed 21.0.8-oracleFixed 24.0.2Fixed 25 b11Fixed 8u461Fixed
Related Reports
Relates :  
Description
Use a CountDownLatch in javax/swing/AbstractButton/6298940/bug6298940.java instead of delay.

The latch provides a direct way to synchronise EDT and main thread, and the test will finish quicker.
Comments
Fix request [21u,17u] I backport this for parity with 21.0.8-oracle,17.0.16-oracle. No risk, only a test change. Clean backport. Test passes. SAP nighlty testing passed.
20-03-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk17u-dev/pull/3380 Date: 2025-03-18 20:09:42 +0000
18-03-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk21u-dev/pull/1521 Date: 2025-03-18 20:09:30 +0000
18-03-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk24u/pull/112 Date: 2025-03-05 16:55:20 +0000
05-03-2025

Fix Request for 24u This fix improves stability of the `test/jdk/javax/swing/AbstractButton/bug6298940.java` test. In mainline, there have been no failures of the test in (Oracle) since the fix was integrated. Risk: Low
03-03-2025

Changeset: 2bd8f026 Branch: master Author: Alexey Ivanov <aivanov@openjdk.org> Date: 2025-02-17 13:12:02 +0000 URL: https://git.openjdk.org/jdk/commit/2bd8f026dbd449e810dc6ce96cd9235e5cb51a9b
17-02-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/23301 Date: 2025-01-24 16:47:42 +0000
24-01-2025