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

for loop fails for embedded groovy

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • 1.0-beta-4
    • 1.0-beta-4
    • None
    • None
    • Windows 2003

    Description

      I've got the following script:
      ------------------------------
      for (i in 1..10)
      {
      println
      }
      ------------------------------

      If I run this from the command-line, it works great. If I run it from an embedded groovy, it fails with the following exception:

      14:22:39,915 ERROR [LogInterceptor] Unexpected Error:
      java.lang.VerifyError: (class: ScriptEngine_123, method: run signature: ()Ljava/
      lang/Object Inconsistent stack height 2 != 0
      at java.lang.Class.getDeclaredConstructors0(Native Method)
      at java.lang.Class.privateGetDeclaredConstructors(Class.java:1610)
      at java.lang.Class.getConstructor0(Class.java:1922)
      at java.lang.Class.newInstance0(Class.java:278)
      at java.lang.Class.newInstance(Class.java:261)
      ...

      Attachments

        Activity

          People

            Unassigned Unassigned
            nstimm Sean Timm
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: