[ https://issues.apache.org/jira/browse/GROOVY-7539?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pascal Schumacher closed GROOVY-7539. ------------------------------------- Resolution: Duplicate > Traits break if method name has $ sign > -------------------------------------- > > Key: GROOVY-7539 > URL: https://issues.apache.org/jira/browse/GROOVY-7539 > Project: Groovy > Issue Type: Bug > Affects Versions: 2.4.3 > Reporter: Gyula Varga > > trait TestTrait { > public void 'testmethod $problem'() { > println("test") > } > } > If we use this trait as (implements TestTrait) we get: > Can't have an abstract method in a non-abstract class. The class 'SomeClass' > must be declared abstract or the method 'someMethod()' must be implemented. > Since Groovy supports method names as strings this is unexpected. -- This message was sent by Atlassian JIRA (v6.3.4#6332)