Aladdin - Scala Bugtracking
[#470] project: compiler priority: high category: bug
submitter assigned to status date submitted
Burak Martin fixed 2005-10-30 23:08:02.0
subject unpickle crashes
code
object foo {
  val z = scala.xml.Null;
  }
what happened
When using bin/.nsc_wrapper from a symbolic link "nsc"
emir@chara:/tmp>/localhome/buraq/tmp/scala/bin/nsc -d . t4.scala
java.lang.Error:  loading singleton class Iterator without loading module first
        at scala.tools.nsc.symtab.SymbolLoaders$errorLoader$.doComplete(SymbolLoaders.scala:178)
        at scala.tools.nsc.symtab.SymbolLoaders$SymbolLoader$class.scala$tools$nsc$symtab$SymbolLoaders$SymbolLo\
ader$access$scala$tools$nsc$symtab$SymbolLoaders$SymbolLoader$doComplete(SymbolLoaders.scala:27)
        at scala.tools.nsc.symtab.SymbolLoaders$SymbolLoader$$anon$7.apply(SymbolLoaders.scala:41)
        at scala.tools.nsc.symtab.SymbolLoaders$SymbolLoader$$anon$7.apply(SymbolLoaders.scala:38)
        at scala.runtime.ScalaRunTime$$anon$0.run(ScalaRunTime.scala:34)
        at scala.runtime.RunTime.tryCatch(RunTime.java:79)
        at scala.runtime.ScalaRunTime$$anon$0.(ScalaRunTime.scala:32)
        at scala.runtime.ScalaRunTime$.Try(ScalaRunTime.scala:30)
        at scala.tools.nsc.symtab.SymbolLoaders$SymbolLoader$class.complete(SymbolLoaders.scala:38)
        at scala.tools.nsc.symtab.Symbols$Symbol$$anon$18.apply(Symbols.scala:279)
        at scala.tools.nsc.symtab.Symbols$Symbol$$anon$18.apply(Symbols.scala:277)
       at scala.runtime.ScalaRunTime$$anon$0.run(ScalaRunTime.scala:34)
        at scala.runtime.RunTime.tryCatch(RunTime.java:79)
        at scala.runtime.ScalaRunTime$$anon$0.(ScalaRunTime.scala:32)
        at scala.runtime.ScalaRunTime$.Try(ScalaRunTime.scala:30)
        at scala.tools.nsc.symtab.Symbols$Symbol$class.info(Symbols.scala:277)
        at scala.tools.nsc.symtab.classfile.UnPickler$UnPickle$class.scala$tools$nsc$symtab$classfile$UnPickler$\
UnPickle$readSymbol(UnPickler.scala:86)
        at scala.tools.nsc.symtab.classfile.UnPickler$UnPickle$class.scala$tools$nsc$symtab$classfile$UnPickler$\
UnPickle$access$scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$readSymbol(UnPickler.scala:27)

...
what expected no error.
[back to overview]
Changes of this bug report
Martin  edited on  2005-10-31 12:18:02.0