You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Gyula Varga (JIRA)" <ji...@apache.org> on 2015/08/03 15:19:05 UTC
[jira] [Created] (GROOVY-7539) Traits break if method name has $
sign
Gyula Varga created GROOVY-7539:
-----------------------------------
Summary: 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)