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

JFXPanel.setScene(Scene) uses bad synchronization pattern

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 8
    • Fix Version/s: 10
    • Component/s: javafx
    • Labels:

      Description

      The JFXPanel.setScene method blocks EDT while invoking a runnable on FX thread. Though it doesn't cause problems with the exact runnable it posts, it demonstrates a bad practice breaking the rule which says "never block the event thread".

      java.awt.EventQueue.createSecondaryLoop() API should be used instead of wait().

        Attachments

          Activity

            People

            • Assignee:
              psadhukhan Prasanta Sadhukhan
              Reporter:
              ant Anton Tarasov
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: