JDK-8277396 : [TESTBUG] In DefaultButtonModelCrashTest.java, frame is accessed from main thread
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 10
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2021-11-18
  • Updated: 2022-05-17
  • Resolved: 2021-12-02
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.16-oracleFixed 17.0.4-oracleFixed 18 b27Fixed 8u341Fixed
Related Reports
Relates :  
Description
The finally block in DefaultButtonModelCrashTest.java accesses frame field from the main thread for null-check.

The null-check should be performed on EDT or frame should be declared as volatile.
Comments
Fix request [11u] I backport this for parity with 11.0.16-oracle. No risk, only a test change. Clean backport. Test passes. SAP nighlty testing passed.
29-04-2022

A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk11u-dev/pull/1059 Date: 2022-04-28 13:54:04 +0000
28-04-2022

A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk17u-dev/pull/361 Date: 2022-04-25 15:10:29 +0000
25-04-2022

Fix Request (17u): Should get backported for parity with 17.0.4-oracle. Applies cleanly. Tested on MacBook Pro M1.
25-04-2022

Changeset: b310f301 Author: Alexey Ivanov <aivanov@openjdk.org> Date: 2021-12-02 20:59:46 +0000 URL: https://git.openjdk.java.net/jdk/commit/b310f301efd5390408fb56b62cc09eb9a1604413
02-12-2021