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.