Scala编译失败

时间:2012-05-10 15:06:17

标签: scala compiler-errors

我有一些代码,它们编译(scala 2.9.1)一个scala类"在飞行中" (即在运行时从scala应用程序代码调用scala编译器)

有时编译失败(见下文) 你能解释它是什么以及如何解决这个问题吗?

java.lang.AssertionError: assertion failed
    at scala.Predef$.assert(Predef.scala:89)
    at scala.tools.nsc.transform.Erasure$ErasureTransformer.bridgeDefs(Erasure.scala:875)
    at scala.tools.nsc.transform.Erasure$ErasureTransformer.addBridges(Erasure.scala:956)
    at scala.tools.nsc.transform.Erasure$ErasureTransformer$$anon$3.preErase(Erasure.scala:1135
java.lang.AssertionError: assertion failed
  at scala.Predef$.assert(Predef.scala:89)
  at scala.tools.nsc.symtab.InfoTransformers$InfoTransformer.insert(InfoTransformers.scala:21)  at scala.tools.nsc.symtab.InfoTransformers$InfoTransformer.insert(InfoTransformers.scala:25)
  at scala.tools.nsc.symtab.InfoTransformers$InfoTransformer.insert(InfoTransformers.scala:25)
java.lang.Error: no-symbol does not have owner
  at scala.tools.nsc.symtab.SymbolTable.abort(SymbolTable.scala:34)
  at scala.tools.nsc.symtab.Symbols$NoSymbol$.owner(Symbols.scala:2150)
  at scala.tools.nsc.transform.Erasure$ErasureTransformer$$anon$3.preErase(Erasure.scala:1112)
  at scala.tools.nsc.transform.Erasure$ErasureTransformer$$anon$3.transform(Erasure.scala:1157)

0 个答案:

没有答案