Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

runtime reflection should work with shortened class names emitted by -Xmax-class-file-name #7779

Closed
scabug opened this issue Aug 23, 2013 · 3 comments
Assignees
Milestone

Comments

@scabug
Copy link

scabug commented Aug 23, 2013

import scala.collection._ 
import scala.collection._ 
import scala.collection._ 
import scala.collection._ 
import scala.collection._ 
import scala.collection._ 
import scala.collection._ 
import scala.collection._ 
import scala.collection._ 
import scala.collection._ 
import scala.collection._ 
import scala.collection._ 
import scala.collection._ 
import scala.collection._ 
import scala.collection._ 
import scala.collection._ 
import scala.collection._ 
import scala.collection._ 
import scala.collection._ 
import scala.collection._ 
import scala.collection._ 
import scala.collection._ 
import scala.collection._ 
import scala.collection._ 
import scala.collection._ 
import scala.collection._ 
import scala.collection._ 
import scala.collection._ 
import scala.collection._ 
import scala.collection._ 
import scala.collection._ 
import scala.collection._ 
import scala.collection._ 
import scala.collection._ 
import scala.collection._ 
import scala.collection._ 
import scala.collection._ 
import scala.collection._ 
import scala.collection._ 
import scala.collection._ 
import scala.collection._ 
import scala.collection._ 
import scala.collection._ 
import scala.collection._ 
import scala.collection._ 
import scala.collection._ 
import scala.collection._ 
import scala.collection._ 
import scala.collection._ 
import scala.collection._

import reflect.runtime.universe._
trait Foo; val tt = typeTag[Foo]; tt.mirror.runtimeClass(tt.tpe)
java.lang.ClassNotFoundException: no Java class corresponding to object $iw found 
at scala.reflect.runtime.JavaMirrors$JavaMirror$$anonfun$classToJava$1.scala$reflect$runtime$JavaMirrors$JavaMirror$$anonfun$$noClass$1(JavaMirrors.scala:1156) 
at scala.reflect.runtime.JavaMirrors$JavaMirror$$anonfun$classToJava$1.apply(JavaMirrors.scala:1181) 
at scala.reflect.runtime.JavaMirrors$JavaMirror$$anonfun$classToJava$1.apply(JavaMirrors.scala:1155) 
at scala.reflect.runtime.TwoWayCache.toJava(TwoWayCache.scala:49) 
@scabug
Copy link
Author

scabug commented Aug 23, 2013

Imported From: https://issues.scala-lang.org/browse/SI-7779?orig=1
Reporter: @retronym
Affected Versions: 2.10.0

@scabug
Copy link
Author

scabug commented Aug 23, 2013

@scabug
Copy link
Author

scabug commented Aug 23, 2013

@retronym said:
PR: scala/scala#2871

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants