JDK-8240690 : Race condition between EDT and BasicDirectoryModel.FilesLoader.run0()
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 11,15
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2020-03-06
  • Updated: 2024-03-01
  • Resolved: 2020-03-26
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 15 JDK 8
11.0.10-oracleFixed 15 b19Fixed 8u301Fixed
Related Reports
Duplicate :  
Duplicate :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Description
The test uses the Swing components on the main thread and gets some exceptions because of the race between main/EDT. This causes the test to fail in mach5 from time to time:
test/jdk/javax/swing/JFileChooser/4966171/bug4966171.java
Comments
Adding jdk8u-needs-pr. This fix needs to be rebased on to the current GitHub 8u-dev repository - https://github.com/openjdk/jdk8u-dev - and reviewed there before being approved and integrated.
14-04-2022

8u code review thread: https://mail.openjdk.java.net/pipermail/jdk8u-dev/2021-May/013831.html
13-05-2021

Fix request (11u) -- will label after testing completed. I would like to downport this for parity with 11.0.10-oracle. Applies clean except for Copyright in GTKFileChooserUI.java.
05-10-2020

URL: https://hg.openjdk.java.net/jdk/jdk/rev/aecc15fc9206 User: psadhukhan Date: 2020-04-11 05:04:11 +0000
11-04-2020

URL: https://hg.openjdk.java.net/jdk/client/rev/aecc15fc9206 User: serb Date: 2020-03-26 05:26:36 +0000
26-03-2020