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.
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.
- blocks
-
JDK-8289379 ☂ Fix errors and warnings generated by Eclipse
- Resolved
- relates to
-
JDK-8097791 Add javafx.scene.control.Alert class
- Resolved
-
JDK-8289777 javac does not see a problem when Eclipse emits a 'blank final field may not have been initialized' error
- Closed