mardi 14 mars 2017

Scala: java.lang.Assertion error throws intermittently on test that eventually uses reflection

An throws intermittently on test that eventually uses reflection

java.lang.AssertionError: assertion failed: List(package myPackage, package myPackage)

at scala.reflect.internal.Symbols$Symbol.suchThat(Symbols.scala:1678)
at scala.reflect.internal.Mirrors$RootsBase.getModuleOrClass(Mirrors.scala:44)
at scala.reflect.internal.Mirrors$RootsBase.getModuleOrClass(Mirrors.scala:40)
at scala.reflect.internal.Mirrors$RootsBase.getModuleOrClass(Mirrors.scala:40)
at scala.reflect.internal.Mirrors$RootsBase.getModuleOrClass(Mirrors.scala:40)
at scala.reflect.internal.Mirrors$RootsBase.getModuleOrClass(Mirrors.scala:61)
at scala.reflect.internal.Mirrors$RootsBase.staticModuleOrClass(Mirrors.scala:72)
at scala.reflect.internal.Mirrors$RootsBase.staticClass(Mirrors.scala:119)
at scala.reflect.internal.Mirrors$RootsBase.staticClass(Mirrors.scala:21)
at com.mypackage.myproject.stats.FieldNames$$typecreator1$1.apply(codeGenerator.scala:10)

the code that is in called when my code is finally code is :

def reflectOnFields[T: universe.TypeTag]: List[StatsDefinition] = {

There is more but I don't see anything obvious about how this could throw.

Searching online for this type of error yields potentially errors with dependencies like this one but I am not sure how to verify.

Any ideas, much apreciated





Aucun commentaire:

Enregistrer un commentaire