You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/** * Tries to load a symbol for the `Foo$class` using Scala reflection. * Since trait implementation classes do not get pickling information * symbol for them should be created using fallback mechanism * that exposes Java reflection information dressed up in * a Scala symbol. **/objectTestextendsApp {
importscala.reflect.mirrorvalname= manifest[Foo].erasure.getName +"$class"valimplClass=Class.forName(name)
valsymbol= mirror.classToSymbol(implClass)
assert(symbol != mirror.NoSymbol)
}
traitFoo {
defbar=1
}
It fails at the moment for mysterious reason. Trying to investigate it.
The text was updated successfully, but these errors were encountered:
Commit Message Bot (anonymous) said:
(grek in r25982) Allow to load $class classes using Scala reflection.
Tweaked implementation of invalidClassName method
to exclude *$class clasess from the set of invalid
names. It's not exactly clear what was the intent
of this method in first place so I'm not sure if
it's the best way to fix #5176. Added test-case
that covers this issue.
This code says it all:
It fails at the moment for mysterious reason. Trying to investigate it.
The text was updated successfully, but these errors were encountered: