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

Multiple Assignment in loop -> Inconsistent stack height 1 != 0

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 1.6
    • 1.6.1, 1.7-beta-1
    • bytecode
    • None

    Description

      $ cat zz.groovy 
      while (true) {
        def (a,b) = [1,2]
      }
      $ groovy zz.groovy 
      Caught: java.lang.VerifyError: (class: zz, method: run signature: ()Ljava/lang/Object;) Inconsistent stack height 1 != 0
      $ groovy --version
      Groovy Version: 1.6.0 JVM: 1.6.0_11
      

      Attachments

        Activity

          People

            blackdrag Jochen Theodorou
            bmaurer Ben Maurer
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: