When I try to recompile TreeMap.scala , I get an exception. This only happens when TreeMap.sca\
la is compiled alone, and all its dependencies have already been compiled. The compiler works fine when <\
code>TreeMap.scala is compiled along with the rest of the library.
~/projects/scala $ touch sources/scala/collection/immutable/TreeMap.scala
~/projects/scala $ make
/tmp/ms/scala_bootstrap/bin/scalac -classpath /tmp/ms/classes_scala -bootclasspath /tmp/ms/classes_scala:./sourc\
es:/home/linuxsoft/apps/java/jre/lib/rt.jar -d /tmp/ms/classes_scala 'sources/scala/collection/immutable/TreeMap\
.scala'
Exception in thread "main" java.lang.NullPointerException
at scala.tools.scalac.typechecker.Analyzer$$anon$31.apply(sources/scala/tools/scalac/typechecker/Analyzer.scala\
:2009)
at scala.tools.scalac.typechecker.Analyzer$$anon$31.apply(sources/scala/tools/scalac/typechecker/Analyzer.scala\
:1925)
at scala.runtime.ResultOrException.tryBlock(ResultOrException.java:34)
at scala.runtime.ScalaRunTime$.Try(sources/scala/runtime/ScalaRunTime.scala:19)
at scala.tools.scalac.typechecker.Analyzer$class.transform(sources/scala/tools/scalac/typechecker/Analyzer.scal\
a:1924)
at scalac.ast.Transformer.transform(Transformer.java:291)
at scala.tools.scalac.typechecker.Analyzer$class.transform(sources/scala/tools/scalac/typechecker/Analyzer.scal\
a:1883)
at scalac.ast.Transformer.transform(Transformer.java:305)
at scala.tools.scalac.typechecker.Analyzer$class.transform(sources/scala/tools/scalac/typechecker/Analyzer.scal\
a:1886)
|