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

a = b = 0 produces a Verify error

    XMLWordPrintableJSON

Details

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

    Description

      a = b = 0

      as a script throws

      Exception in thread "main" java.lang.VerifyError: (class: test, method: run signature: ()Ljava/lang/Object Unable to pop operand off an empty stack
      at java.lang.Class.getDeclaredConstructors0(Native Method)
      at java.lang.Class.privateGetDeclaredConstructors(Class.java:1610)
      at java.lang.Class.getDeclaredConstructors(Class.java:1169)
      at groovy.lang.MetaClass.<init>(MetaClass.java:139)
      at groovy.lang.MetaClassRegistry.getMetaClass(MetaClassRegistry.java:100)
      at org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:132)
      at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:106)
      at groovy.lang.GroovyShell.run(GroovyShell.java:226)
      at groovy.lang.GroovyShell.main(GroovyShell.java:92)

      Attachments

        Activity

          People

            bingran Bing Ran
            tug John Wilson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: