Aladdin - Scala Bugtracking
[#102] project: compiler priority: medium category: bug
submitter assigned to status date submitted
Matthias Michel fixed 2003-09-02 21:52:03.0
subject Backend crash for variable initialization
code
object T {
	def main(args: Array[String]) = {
		val s: Short = 1;
	}
}
what happened
Exception in thread "main" scalac.ApplicationError: unknown literal 1
        at scalac.Global.fail(Global.java:525)
        at scalac.backend.jvm.GenJVM.genLoad(GenJVM.java:517)
        at scalac.backend.jvm.GenJVM.gen(GenJVM.java:156)
        at scalac.backend.jvm.GenJVM.genLoad(GenJVM.java:224)
        at scalac.backend.jvm.GenJVM.gen(GenJVM.java:165)
        at scalac.backend.jvm.GenJVM.gen(GenJVM.java:199)
        at scalac.backend.jvm.GenJVM.gen(GenJVM.java:143)
        at scalac.backend.jvm.GenJVM.gen(GenJVM.java:138)
        at scalac.backend.jvm.GenJVM.translate(GenJVM.java:110)
        at scalac.backend.jvm.GenJVMPhase.apply(GenJVMPhase.java:45)
        at scalac.Global.compile(Global.java:293)
        at scalac.Global.compile(Global.java:266)
        at scalac.Main.main(Main.java:32)
what expected Compiler & runtime positive.
[back to overview]
Changes of this bug report
Matthias  edited on  2003-09-10 23:06:49.0