Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8270216

[macOS] Update named used for Java run loop mode

    XMLWordPrintable

Details

    • b31

    Backports

      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

        Attachments

          Issue Links

            Activity

              People

                prr Philip Race
                prr Philip Race
                Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: