You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Paul King (Jira)" <ji...@apache.org> on 2020/11/11 02:02:05 UTC

[jira] [Closed] (GROOVY-9449) Mutliple methods with the same name now fail before AST transformations can fix it

     [ https://issues.apache.org/jira/browse/GROOVY-9449?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paul King closed GROOVY-9449.
-----------------------------

> Mutliple methods with the same name now fail before AST transformations can fix it
> ----------------------------------------------------------------------------------
>
>                 Key: GROOVY-9449
>                 URL: https://issues.apache.org/jira/browse/GROOVY-9449
>             Project: Groovy
>          Issue Type: Bug
>    Affects Versions: 3.0.0
>            Reporter: Björn Kautler
>            Assignee: Daniel Sun
>            Priority: Major
>             Fix For: 4.0.0-alpha-1, 3.0.3
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> 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.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)