groovy

VerifyError Exception for boolean member variable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major 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 :
    0

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

Activity

Hide
blackdrag blackdrag added a comment -

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!

Show
blackdrag blackdrag added a comment - 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!

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: