Aladdin - Scala Bugtracking
[#567] project: compiler priority: medium category: bug
submitter assigned to status date submitted
Lex Martin fixed 2006-04-20 15:54:20.0
subject -stop causes an assertion failure
code
$ scalac -stop:icode HelloWorld.scala

what happened
Exception in thread "main" java.lang.Error: assertion failed: List((object HelloWorld,HelloWorld in package <\
empty>))
        at scala.Predef$.assert(Predef.scala:171)
        at scala.tools.nsc.Global$Run.compileSources(Global.scala:452)
        at scala.tools.nsc.Global$Run.compile(Global.scala:490)
        at scala.tools.nsc.Main$.process(Main.scala:60)
        at scala.tools.nsc.Main$.main(Main.scala:82)
        at scala.tools.nsc.Main.main(Main.scala)
what expected I believe this should succeed quietly. At any rate, there should be some way to run the compiler through icode generation, to support program analysis.

I do not know what to do about cleaning up the symbol information mentioned in the assertion failure, so will leave this on the bug tracker. Hopefully not all symbol information needs to be reverted, because the my purpose with -stop is to extract the information even though the compilation did not complete....

[back to overview]
Changes of this bug report
Lex  edited on  2006-04-20 15:54:36.0
Lex  edited on  2006-04-20 15:54:48.0
Lex  edited on  2006-04-20 15:55:19.0
Nikolay  edited on  2006-04-25 14:38:39.0
I fixed the assertion to take place only if the compiler has not been stopped in some phase.