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

VerifyError on assignment to boolean variable inside method

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 1.0-beta-5
    • 1.0-beta-5
    • class generator
    • None

    Description

      def method()
      {
      boolean variable = false;
      variable = true;
      }

      method();

      ---------
      receives:
      ---------

      Exception in thread "main" java.lang.VerifyError: (class: test3, method: method signature: ()Ljava/lang/Object Expecting to find integer on stack
      at java.lang.Class.getDeclaredConstructors0(Native Method)
      at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
      at java.lang.Class.getDeclaredConstructors(Unknown Source)
      at groovy.lang.MetaClass.<init>(MetaClass.java:132)
      at groovy.lang.MetaClassRegistry.getMetaClass(MetaClassRegistry.java:93)
      at org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:123)
      at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:103)
      at groovy.lang.GroovyShell.run(GroovyShell.java:183)
      at groovy.lang.GroovyShell.main(GroovyShell.java:88)

      Attachments

        Activity

          People

            jstrachan James Strachan
            cpoirier Chris Poirier
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: