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

JavaFX state is not properly cleaned after destroying all JavaFX components

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • None
    • javafx
    • Linux 64, JDK 1.8.0.05 x64, SWT 4.2.1.

      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.

            kcr Kevin Rushforth
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: