groovy-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gyula Varga (JIRA)" <j...@apache.org>
Subject [jira] [Created] (GROOVY-7539) Traits break if method name has $ sign
Date Mon, 03 Aug 2015 13:19:05 GMT
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)

Mime
View raw message