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

Blank final field 'dialog' may not have been initialized in scene.control.Dialog:521

XMLWordPrintable

      Eclipse emits the following error:

      The blank final field dialog may not have been initialized Dialog.java line 521 /controls/src/main/java/javafx/scene/control

      This is caused by the final 'dialog' field being accessed from within a property listener which is initialized before the constructor, where 'dialog' field itself is initialized.

      Suggested fix: move the 'dialog' field initialization outside of the constructor to force a proper initialization sequence.

            angorya Andy Goryachev
            angorya Andy Goryachev
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: