groovy-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pascal Schumacher (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (GROOVY-7539) Traits break if method name has $ sign
Date Mon, 03 Aug 2015 16:49:04 GMT

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

Mime
View raw message