JavaFX编译器编译满载方法的一处BUG

来源:http://www.verydemo.com/demo_c89_i73346.html

JavaFX 编译器编译重载 方法的一处BUG

直接看测试代码吧,一共2个类:BugTest.fx和A.fx,SDK版本是1.2.3。

BugTest里实现了3个带输入参数的重载 方法,第一个 方法的参数是自定义类型A, A被声明为mixin,后2个的参数是原始类型。只有在第一个 方法被注释的情况下该类才可以被 编译通过,否则 编译会抛出异常:
An exception has occurred in the OpenJavafx compiler. Please file a bug at the Openjfx-compiler issues home (https://openjfx-compiler.dev.java.net/Issues) after checking for duplicates. Include the following diagnostic in your report and, if possible, the source code which triggered this problem.  Thank you.
java.lang.ClassCastException: com.sun.tools.javac.code.Symbol$ClassSymbol
        at com.sun.tools.javafx.code.JavafxTypes.asSuper(JavafxTypes.java:202)
        at com.sun.tools.javac.code.Types.isSubtypeUnchecked(Types.java:305)
        at com.sun.tools.javafx.comp.JavafxResolve.argumentsAcceptable(JavafxResolve.java:421)
        at com.sun.tools.javafx.comp.JavafxResolve.rawInstantiate(JavafxResolve.java:387)
        at com.sun.tools.javafx.comp.JavafxResolve.selectBest(JavafxResolve.java:711)
        at com.sun.tools.javafx.comp.JavafxResolve.findMemberWithoutAccessChecks(JavafxResolve.j…………………………………………………………………………
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值