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

Platform.startup() deadlock on mac when called from class initializer

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9, openjfx11, openjfx12, openjfx13
    • Fix Version/s: openjfx14
    • Component/s: javafx
    • Labels:

      Description

      Code that uses Platform.startup(Runnable r) where the Runnable is a lambda expression, that is called from a class initializer, behaves different on mac versus {linux, windows}

      On mac, there is a deadlock between the main thread and the JavaFX Application Thread.

      See https://github.com/javafxports/openjdk-jfx/issues/542 for a description of the problem.

        Attachments

          Activity

            People

            • Assignee:
              jvos Johan Vos
              Reporter:
              jvos Johan Vos
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: