Aladdin - Scala Bugtracking
[#518] project: compiler priority: medium category: bug
submitter assigned to status date submitted
Sean _ _ 2006-01-20 17:50:59.0
subject resident compiler cannot handle class -> object
code
package test;
class Foo {}

-- and --

package test;
object Foo {}
what happened
Compile test/Foo.scala in resident mode. Initially, Foo is a class. After the first compile, change Foo into an \
object. Then recompile:

Exception in thread "main" java.lang.Error: assertion failed: List((object Foo,scala.tools.nsc.symtab.classfile.\
Pickler$Pickle@16917ee))
        at scala.Predef$.assert(Predef.scala:144)
        at scala.tools.nsc.Global$Run.compileSources(Global.scala:408)
        at scala.tools.nsc.Global$Run.compile(Global.scala:446)
        at scala.tools.nsc.Main$$anonfun0.apply(Main.scala:37)
        at scala.tools.nsc.Main$$anonfun0.apply(Main.scala:34)
        at scala.tools.nsc.EvalLoop$class.loop(EvalLoop.scala:14)
        at scala.tools.nsc.Main$.loop(Main.scala:14)
        at scala.tools.nsc.Main$.resident(Main.scala:34)
        at scala.tools.nsc.Main$.process(Main.scala:53)
        at scala.tools.nsc.Main$.main(Main.scala:69)
        at scala.tools.nsc.Main.main(Main.scala)
what expected Should not crash.
[back to overview]
Changes of this bug report
Sean  edited on  2006-01-20 17:51:36.0
Sean  edited on  2006-01-20 17:51:56.0