Aladdin - Scala Bugtracking
[#331] project: compiler priority: high category: bug
submitter assigned to status date submitted
Stephane Martin fixed 2004-05-11 15:40:30.0
subject NullPointerException in Analyzer.mkStable
code
// variable CLASSPATH is undefined!!
package foo;

//import scala.collection.mutable._; // Ok!
//import javax.swing.text._; // Ok!
import ch.epfl.lamp.fjbg._;

import java.io.ByteArrayOutputStream;
import java.io.DataOutputStream;
what happened
bug.scala:7: illegal cyclic reference involving value import ch.epfl.lamp.fjbg
import java.io.ByteArrayOutputStream;
       ^
Exception in thread "main" java.lang.NullPointerException
    at scala.tools.scalac.typechecker.
        Analyzer$class.mkStable(Analyzer.scala:1364)
    at scala.tools.scalac.typechecker.
        Analyzer$class.transformIdent(Analyzer.scala:1740)
[...]
what expected Compiler reports no error
[back to overview]
Changes of this bug report
Martin  edited on  2004-05-13 12:43:27.0