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

Mutliple methods with the same name now fail before AST transformations can fix it

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.0
    • Fix Version/s: 4.0.0-alpha-1, 3.0.3
    • Component/s: None
    • Labels:
      None

      Description

      The parser in Groovy 3 fails early on multiple methods with the same name.

      For example in a Spock specification with Groovy 2.5 you can have mutliple methods with the same name.

      After the Spock AST transformations are done, there are only unique method names left and all is fine.

      But with Groovy 3, the parser fails with error before the AST transformation had a chance to fix things up.

      Setting the system property groovy.antlr4=false restores the previous behavior.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                daniel_sun Daniel Sun
                Reporter:
                vampire Björn Kautler
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m