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

Inconsistent Stack Height

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.0-beta-2
    • None
    • None
    • j2sdk1.4 on xp w. cygwin

    Description

      using jar:
      http://www.ibiblio.org/maven/groovy/jars/groovy-1.0-alpha-2.jar
      ----------------------------
      foo = [1,2,3]
      for(i in foo){
      bar[0] = 'x'
      bar[1] = 'y'
      }
      -----------------------------
      Exception in thread "main" java.lang.VerifyError: (class: inline, method: run signature: ()Ljava/lang/Object Inconsistent stack height 6 != 0
      at java.lang.Class.getDeclaredConstructors0(Native Method)
      at java.lang.Class.privateGetDeclaredConstructors(Class.java:1576)
      at java.lang.Class.getConstructor0(Class.java:1748)
      at java.lang.Class.getConstructor(Class.java:990)
      at org.codehaus.groovy.runtime.InvokerHelper.createScript(InvokerHelper.java:263)
      at Foo.prepare(Foo.java:74)
      at Foo.main(Foo.java:101)

      Attachments

        Activity

          People

            jstrachan James Strachan
            fuller Robert Fuller
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: