You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Björn Kautler (Jira)" <ji...@apache.org> on 2020/03/08 04:09:00 UTC
[jira] [Created] (GROOVY-9449) Mutliple methods with the same name
now fail before AST transformations can fix it
Björn Kautler created GROOVY-9449:
-------------------------------------
Summary: 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
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)