在JavaFX1.x(1.2和1.3.1)中使用Scala 2.8.x(2.8.0和2.8.1)时出现错误的类文件错误

在JavaFX1.x(1.2和1.3.1)中使用Scala 2.8.x(2.8.0和2.8.1)时出现错误的类文件错误,scala,javafx,javafx-1,Scala,Javafx,Javafx 1,尝试在javafx脚本中导入scala.Option时,我遇到以下javafxc错误: cannot access scala.Option.$anonfun$orNull$1 bad class file: scala/Option$$anonfun$orNull$1.class(scala:Option$$anonfun$orNull$1.class) undeclared type variable: A1 Please remove or make sure it appears in

尝试在javafx脚本中导入scala.Option时,我遇到以下javafxc错误:

cannot access scala.Option.$anonfun$orNull$1
bad class file: scala/Option$$anonfun$orNull$1.class(scala:Option$$anonfun$orNull$1.class)
undeclared type variable: A1
Please remove or make sure it appears in the correct subdirectory of the classpath.
import scala.Option;
我使用的是Scala 2.8.1、Javafxc 1.3.1_b101、JVM 1.6.0_21-b06、OS Ubuntu 10.10。同样的代码在Scala 2.7.7中工作

以后编辑: 在导入scala.immutable.Seq/List/Traversable/Iterable的情况下报告了相同的错误。我在默认的Netbeans 6.9.1JavaFX项目中尝试了导入,该项目在类路径中只有scala-library.jar

它首先让我想起了,但这一个看起来很不一样


我建议您尝试用2.8.1或2.9 trunk重现错误,也许它已修复?

确保根据RC重新编译整个代码库。缓存的类文件是PITA。还要确保没有其他
scala.Option
stable标识符被拾取。谢谢您的回答。我尝试将scala.Option导入到默认的Netbeans 6.8 JavaFX项目中,该项目在类路径中只有scala库,我得到了相同的错误。我注意到,如果我导入scala.immutable.collection.Seq/List/Iterable,会报告相同的错误(它抱怨不同的类,但遵循相同的名称模式)。感谢您的提示,我刚刚在scala 2.8.1中尝试了它,但仍然得到了一个错误,尽管错误不同。我已经更新了问题。