You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Daniel Sun (Jira)" <ji...@apache.org> on 2020/03/08 11:34:00 UTC

[jira] [Commented] (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:comment-tabpanel&focusedCommentId=17054379#comment-17054379 ] 

Daniel Sun commented on GROOVY-9449:
------------------------------------

Could you provide some code sample?

> 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
>            Priority: Major
>
> 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)