You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Pascal Schumacher (JIRA)" <ji...@apache.org> on 2015/08/03 18:49:04 UTC

[jira] [Closed] (GROOVY-7539) Traits break if method name has $ sign

     [ 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)