[#778] | project: distribution | priority: high | category: bug | |
---|---|---|---|---|
submitter | assigned to | status | date submitted | |
Stephane | Sean | fixed | 2006-10-13 20:43:15.0 | |
subject | scalap crashes on jar files | |||
code | ||||
what happened | ./bin/scalap -classpath ./lib/scala-compiler.jar scala.tools.nsc.Main Exception in thread "main" java.lang.Error at scala.Predef$.error(Predef.scala:82) at scala.tools.scalap.Main$.liftedTry0$0(Main.scala:99) at scala.tools.scalap.Main$.process(Main.scala:91) at scala.tools.scalap.Main$$anonfun$2.apply(Main.scala:175) at scala.tools.scalap.Main$$anonfun$2.apply(Main.scala:175) at scala.List.foreach(List.scala:687) at scala.tools.scalap.Main$.main(Main.scala:175) at scala.tools.scalap.Main.main(Main.scala) |
|||
what expected | package scala.tools.nsc; final class Main extends scala.AnyRef { } object Main { def $tag(): scala.Int; def loop(scala.Function1): scala.Unit; def compiler$1(scala.tools.nsc.CompilerCommand, scala.runtime.ObjectRef): scala.tools.nsc.Main$compiler$2$; def main(scala.Array[java.lang.String]): scala.Unit; def process(scala.Array[java.lang.String]): scala.Unit; def resident(scala.tools.nsc.Global): scala.Unit; def errors(): scala.Int; def error(java.lang.String): scala.Unit; def reporter_=(scala.tools.nsc.reporters.ConsoleReporter): scala.Unit; def reporter(): scala.tools.nsc.reporters.ConsoleReporter; def prompt(): java.lang.String; def versionMsg(): java.lang.String; def COPYRIGHT(): java.lang.String; def VERSION(): java.lang.String; def PRODUCT(): java.lang.String; } |
|||
[back to overview] |
Stephane edited on 2006-10-13 20:45:27.0 |
nsc.util.ClassPath returns the following file name: /home/linuxsoft/apps/scala/share/scala/lib/scala-compiler.jar(scala/tools/nsc/Main.class) Is that correct ?! My current hack checks for that pattern and creates a corresponding input stream. |
Stephane edited on 2006-10-13 21:29:33.0 |
"cfile.file" should not be null in method process. |
Stephane edited on 2006-10-18 12:45:14.0 |
Now uses symtab.classfile.AbstractFileReader. Fixed. |