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

Use of an inner enum causes compilation to go into infinite loop

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 1.7.5
    • Fix Version/s: 2.6.0-alpha-1
    • Component/s: class generator
    • Labels:
      None

      Description

      The following piece of code causes the compilation to go into infinite loop

      Groovy Compiler - To infinity and beyond..
      enum Outer {
          A, B
          enum Inner{X, Y}
      }
      

        Activity

        Hide
        melix Cédric Champeau added a comment -

        Seems to be a parsing issue: infine loop is in GroovyRecognizer.

        Show
        melix Cédric Champeau added a comment - Seems to be a parsing issue: infine loop is in GroovyRecognizer.
        Hide
        paulk Paul King added a comment -

        Workaround (if you don't have a constructor, method or field) is to add a semicolon.

        Show
        paulk Paul King added a comment - Workaround (if you don't have a constructor, method or field) is to add a semicolon.
        Hide
        blackdrag Jochen Theodorou added a comment -

        setting fix version to 4.0 for now to reflect the parser change maybe needed here

        Show
        blackdrag Jochen Theodorou added a comment - setting fix version to 4.0 for now to reflect the parser change maybe needed here
        Hide
        daniel_sun Daniel Sun added a comment -

        Fixed in the parrot branch

        Show
        daniel_sun Daniel Sun added a comment - Fixed in the parrot branch

          People

          • Assignee:
            daniel_sun Daniel Sun
            Reporter:
            roshandawrani Roshan Dawrani
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development