Aladdin - Scala Bugtracking
[#252] project: compiler priority: high category: bug
submitter assigned to status date submitted
Michel Martin fixed 2003-12-08 16:13:57.0
subject Null pointer exception in Analyzer
code
sources/scala/collections/immutable/TreeMap.scala
what happened
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)
what expected A successful compilation.
[back to overview]
Changes of this bug report
Martin  edited on  2004-01-06 13:53:45.0