You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JavaFXML loader cannot properly load my controller class, because the required variables compile to names like
private javafx.scene.control.TextField ui$FXMLAttrEditorController$$intField;
private javafx.scene.control.TextField ui$FXMLAttrEditorController$$xField;
private javafx.scene.control.TextField ui$FXMLAttrEditorController$$yField;
.
The correct names would be
See attached file. It is extracted from a working project, but should compile alone, if you remove the "irrelevant" parameter. The problem gets triggered around line 40.
@retronym said:
If we were to fix #7085 you could leave them private. Currently, accessing a private member from an inner class or anonymous function triggers the transformation to a public, name mangled member.
JavaFXML loader cannot properly load my controller class, because the required variables compile to names like
private javafx.scene.control.TextField ui$FXMLAttrEditorController$$intField;
private javafx.scene.control.TextField ui$FXMLAttrEditorController$$xField;
private javafx.scene.control.TextField ui$FXMLAttrEditorController$$yField;
.
The correct names would be
private javafx.scene.control.TextField intField;
private javafx.scene.control.TextField xField;
private javafx.scene.control.TextField yField;
(as reported by javap.exe).
See attached file. It is extracted from a working project, but should compile alone, if you remove the "irrelevant" parameter. The problem gets triggered around line 40.
If you need build.sbt, try this:
scalaVersion := "2.11.4"
libraryDependencies ++= Seq(
"org.scalafx" %% "scalafx" % "8.0.20-R6",
)
The text was updated successfully, but these errors were encountered: