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

JFXPanel.setScene(Scene) uses bad synchronization pattern

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 10
    • 8
    • javafx

      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().

            psadhukhan Prasanta Sadhukhan
            ant Anton Tarasov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: