Aladdin - Scala Bugtracking
[#985] project: compiler priority: medium category: bug
submitter assigned to status date submitted
Gilles Iulian noise 2007-03-09 16:03:27.0
subject Bad bytecode for translation of Int.box
code
def test3 = {
  Int.box(22)
}
what happened
java.lang.VerifyError: (class: TestBox$, method: test3 signature: ()V) Inconsistent stack height 1 != 0
        at TestBox.main(testBox.scala)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at scala.tools.nsc.ObjectRunner$.run(ObjectRunner.scala:76)
        at scala.tools.nsc.MainGenericRunner$.main(MainGenericRunner.scala:106)
        at scala.tools.nsc.MainGenericRunner.main(MainGenericRunner.scala)
what expected No error.
[back to overview]
Changes of this bug report
Gilles  edited on  2007-03-09 16:04:53.0
I shouldn't have reloaded the bug create page.