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

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.0
    • 4.0.0-alpha-1, 3.0.3
    • None
    • 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

              daniel_sun Daniel Sun
              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