Scala Programming Language
  1. Scala Programming Language
  2. SI-7779

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

    Details

      Description

      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) 
      

        Activity

        Show
        Jason Zaugg added a comment - WIP: https://github.com/retronym/scala/compare/scala:2.10.x...ticket/7779?expand=1
        Hide
        Jason Zaugg added a comment -
        Show
        Jason Zaugg added a comment - PR: https://github.com/scala/scala/pull/2871

          People

          • Assignee:
            Jason Zaugg
            Reporter:
            Jason Zaugg
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development