错误:值scala不是包

时间:2016-03-28 12:55:17

标签: scala

我使用Scala,Maven和IntelliJ处理某个项目。 一切都运行正常,直到我不得不格式化我的电脑并重新安装一切。现在当我尝试运行我工作的同一个项目时,我得到了这些错误:

java.lang.AssertionError: assertion failed: List(package scala, package scala)
scala.reflect.runtime.ReflectError: value scala is not a package

你们有谁知道这意味着什么?

1 个答案:

答案 0 :(得分:1)

Are you doing multithreading runtime reflection and which version of Scala do you use ?
It seems related to thread safety of Scala.
Unfortunately, in Scala 2.10 reflection is not thread safe. Read more:

http://docs.scala-lang.org/overviews/reflection/thread-safety.html