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

JavaFX state is not properly cleaned after destroying all JavaFX components

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: javafx
    • Labels:
    • Environment:

      Linux 64, JDK 1.8.0.05 x64, SWT 4.2.1.

      Description

      JavaFX state is not properly cleaned after destroying all JavaFX components.
      It will result on an exception if you create a new JavaFX component.

      Steps to reproduce:

      1 - Create a SWT application and add a FXCanvas
      2 - Dispose the FXCanvas. The application will no longer have JavaFX components.
      3 - Create a new FXCanvas.
      4 - The application will throw "java.lang.IllegalStateException: Not on FX application thread"


      Problems:

      When the last JavaFX component is destroyed, the JavaFX shutsdown and cleans the state, but not properly.
      The static fields "initialized" at "com.sun.javafx.application.PlatformImpl" and "application" at "com.sun.glass.ui.Application" stays dirty.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kcr Kevin Rushforth
                Reporter:
                duke J. Duke (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported: