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

CompileStack#removeVar: tried to remove a temporary variable with index 2 in wrong order

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Duplicate
    • Affects Version/s: 2.4.2
    • Fix Version/s: 2.4.3
    • Component/s: class generator
    • Labels:
      None

      Description

      After switching to Groovy 2.4.2 I get the following error when trying to compile the attached file (via Gradle):

      BUG! exception in phase 'class generation' in source unit '/mirror/ImpetusGames/Code/ImpetusGDX/src/ecs/lib/comp/TiledMapComponent.groovy' CompileStack#removeVar: tried to remove a temporary variable with index 2 in wrong order. Current temporary variables=[switch(index=4,type=java.lang.Object,holder=false), iterator(index=2,type=java.util.Iterator <E extends java.lang.Object -> java.lang.Object>,holder=false)]

      This code worked in the previous Groovy versions up to 2.4.1 without any issue. Since I cannot find the root cause of this problem, I have attached the full source code file here.

        Attachments

        1. TaskManager.groovy
          4 kB
          Matthias Brandstetter
        2. TiledMapComponent.groovy
          7 kB
          Matthias Brandstetter

          Activity

            People

            • Assignee:
              melix C├ędric Champeau
              Reporter:
              haimat Matthias Brandstetter
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: