JDK-8270216 : [macOS] Update named used for Java run loop mode
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 17
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2021-07-09
  • Updated: 2022-05-30
  • Resolved: 2021-07-10
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 13 JDK 15 JDK 17 JDK 18
11.0.13-oracleFixed 13.0.9Fixed 15.0.5Fixed 17 b31Fixed 18Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Description
JDK 17 uses "JavaRunLoopMode" for the name of the NSRunLoop mode used when in a nested event loop.
Previously it used what JNF defined which was "AWTRunLoopMode".

Ideally we'd dispense with this special run mode entirely but that was out of scope for the JNF removal, and is out of scope for this stage of JDK 17.

So for now we can just switch it to use the same name as JNF used.

This is still considered internal implementation and it will just "happen" to work for applications which do the not very common thing of using native macOS code to jump on the Appkit main thread, using JNF, whilst AWT is in a nested event loop.

A follow-on bug to come up with a more supportable solution has been filed 
https://bugs.openjdk.java.net/browse/JDK-8270211
Comments
Fix Request(15u): Clean and simple backport. Applies cleanly. to be on par with jdk11u
31-08-2021

Fix Request(13u): Clean and simple backport. Applies cleanly. to be on par with jdk11u
31-08-2021

Fix Request(11u): Clean and simple backport. Applies cleanly. to be on par with oracle
31-08-2021

Changeset: 25460065 Author: Phil Race <prr@openjdk.org> Date: 2021-07-10 19:12:59 +0000 URL: https://git.openjdk.java.net/jdk17/commit/254600658acbc5c40ae8f0de0d01c9906c67c46c
10-07-2021

Initially reported here: https://mail.openjdk.java.net/pipermail/awt-dev/2021-June/018070.html
10-07-2021