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
Running:
```
object Test {
def main(args: Array[String]): Unit = {
import scala.tools.nsc._
val settings = new Settings()
settings.Ylogcp.value = true
settings.usejavacp.value = false
settings.classpath.value = "/code/scala/build/pack/lib/scala-library.jar:/tmp/foo"
settings.bootclasspath.value = ""
System.setProperty("scala.usejavacp", "false")
val g = new Global(settings)
import g._
new Run()
val DecodeModule = g.rootMirror.getModuleByName(TermName("scala.tools.scalap.Decode"))
println(DecodeModule.moduleClass.info)
}
}
```
Against:
```
$ find /tmp/foo -type f
/tmp/foo/scala/tools/scalap/Decode.class
```
Would show up the `NoSymbol` owners of stub symbols in
the full names of symbols:
```
AnyRef {
def <init>(): scala.tools.scalap.Decode.type
private def getAliasSymbol(t: <none>.scalasig.Type): <none>.scalasig.Symbol
...
```
After this patch, we instead see:
```
private def getAliasSymbol(t: scala.tools.scalap.scalax.rules.scalasig.Type): scala.tools.scalap.scalax.rules.scalasig.Symbol
```
This makes it feasible to write tools like scalap in terms
of the Unpickler/ClassfileParser.
0 commit comments