shakedzy
shakedzy

Reputation: 2893

Error: value scala is not a package

I worked on a certain project using Scala, Maven and IntelliJ. Everything worked fine, until I had to format my computer and re-install everything. Now when I try to run the same project I worked on, I get these errors:

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

Do any of you know what it means?

Upvotes: 0

Views: 689

Answers (1)

Guoqing Geng
Guoqing Geng

Reputation: 11

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

Upvotes: 1

Related Questions