Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-1357

VerifyError Exception for boolean member variable

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-JSR-5
    • 1.0-JSR-6
    • None
    • None
    • Windows XP

    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

      Attachments

        Activity

          People

            blackdrag Jochen Theodorou
            awbranch Andrew Branch
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: