Relates :
|
|
Relates :
|
|
Relates :
|
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
|