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 をインポートすると、同じエラーが報告されます。クラスパスにscala-library.jarのみがあるデフォルトのNetbeans 6.9.1 JavaFXプロジェクトでインポートを試みました。