多重継承
JavaFX は多重継承すると。
キーワード super が使えない。
//Super1.fx public class Super1 { public function bar() { } } //Super2.fx public class Super2 { } //Child.fx class Child extends Super1, Super2 { public override function bar() { super.bar(); } }
これをコンパイルすると
init: deps-jar: using profile: DESKTOP Java compilation executing commandline: [...] JavaFX compilation executing commandline: [...] C:\NetBeansProjects\hello\src\hello\Child.fx:21: シンボルを見つけられません。 シンボル: 変数 super 場所 : hello.Child の クラス super.bar(); エラー 1 個 Exception in thread "main" java.lang.RuntimeException: javafxc execution failed, exit code: 1 at com.sun.tools.javafx.packager.Main.javafxc(Main.java:333) at com.sun.tools.javafx.packager.Main.execute(Main.java:851) at com.sun.tools.javafx.packager.Main.main(Main.java:158) C:\NetBeansProjects\hello\nbproject\build-impl.xml:136: exec returned: 1 BUILD FAILED (total time: 2 seconds)
シンボルが見つからないと。
う〜〜〜ん。