-
Bug
-
Resolution: Fixed
-
P4
-
7u6
-
Win64, JRE6 64bit, FX 2.2
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8131112 | 7u40 | Unassigned | P4 | Closed | Fixed |
A legacy super class for my FXML controller already includes a protected initialize() method. The controller does not implement the Initializable interface. Consequently, FXMLLoader tries to call the no-args initialize() method and fails with IllegalAccessException:
Caused by: javafx.fxml.LoadException: java.lang.IllegalAccessException: Class javafx.fxml.FXMLLoader can not access a member of class mint.panel.MintContextPanel with modifiers "protected"
at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2184)
at mint.javafx.MintFXUtils.loadWithController(MintFXUtils.java:86)
... 8 more
Caused by: java.lang.IllegalAccessException: Class javafx.fxml.FXMLLoader can not access a member of class mint.panel.MintContextPanel with modifiers "protected"
at sun.reflect.Reflection.ensureMemberAccess(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2182)
... 9 more
Caused by: javafx.fxml.LoadException: java.lang.IllegalAccessException: Class javafx.fxml.FXMLLoader can not access a member of class mint.panel.MintContextPanel with modifiers "protected"
at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2184)
at mint.javafx.MintFXUtils.loadWithController(MintFXUtils.java:86)
... 8 more
Caused by: java.lang.IllegalAccessException: Class javafx.fxml.FXMLLoader can not access a member of class mint.panel.MintContextPanel with modifiers "protected"
at sun.reflect.Reflection.ensureMemberAccess(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2182)
... 9 more
- backported by
-
JDK-8131112 FXMLLoader: IllegalAccessException when Initializable not implemented and initialize() is present but not public
-
- Closed
-