Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.0-JSR-5
-
Fix Version/s: 1.0-JSR-6
-
Component/s: None
-
Labels:None
-
Environment:Windows XP
-
Testcase included:yes
-
Number of attachments :
Description
The following test case causes a VerifyError
class Tester {
boolean bar
void foo() { bar = ("a" == "b") println(bar) }
static void main(args) {
Tester t = new Tester()
t.foo()
}
}
Caught: java.lang.VerifyError: (class: Tester, method: foo signature: ()V) Expecting to find object/array on stack
If I change bar from a member variable to a local variable it works as expected
I remember there was a boolean autoboxing problem which caused this problem. The good news, it is fixed already and will be ok in the next release!