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

ConcurrentModificationException when closing APPLICATION_MODAL dialog

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 8u60
    • 8u25, 8u40
    • javafx
    • Windows 7 64-bit. Java 8 Update 40 b16.

        I have the very latest JRE 8 Update 40 b16 (32bit).

        My application uses lots of JavaFX Dialogs, and for some dialogs, when I call showAndWait(), under some circumstances that are unknown to myself... I get this exception:

        Exception in thread "JavaFX Application Thread"
        java.util.ConcurrentModificationException
        at java.util.ArrayList$Itr.checkForComodification(Unknown Source)
        at java.util.ArrayList$Itr.next(Unknown Source)
        at com.sun.javafx.tk.quantum.GlassStage.windowsSetEnabled(Unknown Source)
        at com.sun.javafx.tk.quantum.WindowStage.setVisible(Unknown Source)
        at javafx.stage.Window$9.invalidated(Unknown Source)
        at javafx.beans.property.BooleanPropertyBase.markInvalid(Unknown Source)
        at javafx.beans.property.BooleanPropertyBase.set(Unknown Source)
        at javafx.stage.Window.setShowing(Unknown Source)
        at javafx.stage.Window.show(Unknown Source)
        at javafx.stage.Stage.show(Unknown Source)
        at javafx.stage.Stage.showAndWait(Unknown Source)
        at javafx.scene.control.HeavyweightDialog.showAndWait(Unknown Source)
        at javafx.scene.control.Dialog.showAndWait(Unknown Source)

        I cannot for the life of me figure out if it's me doing something wrong, or if this is indeed a bug in JavaFX dialogs.. but I am leaning towards a JavaFX bug.

        I do not have a test case, since it's my real application in which it happens... and most of the dialogs show just fine.

              kcr Kevin Rushforth
              amjfx AM (Inactive)
              Votes:
              2 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported: