groovy-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (GROOVY-6454) Can't delegate (with the @Delegate annotation) to a method whose name contains a dollar ($) character
Date Wed, 13 Apr 2016 05:43:25 GMT

    [ https://issues.apache.org/jira/browse/GROOVY-6454?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15238640#comment-15238640
] 

ASF GitHub Bot commented on GROOVY-6454:
----------------------------------------

Github user asfgit closed the pull request at:

    https://github.com/apache/groovy/pull/299


> Can't delegate (with the @Delegate annotation) to a method whose name contains a dollar
($) character
> -----------------------------------------------------------------------------------------------------
>
>                 Key: GROOVY-6454
>                 URL: https://issues.apache.org/jira/browse/GROOVY-6454
>             Project: Groovy
>          Issue Type: Bug
>          Components: Compiler, xforms
>    Affects Versions: 2.2.0
>         Environment: Linux (Ubuntu 12.04), Java SE (Oracle) 1.7.0_45-b18, Groovy 2.2.0
>            Reporter: chocolateboy
>              Labels: regression
>         Attachments: dollar_delegate.groovy
>
>
> As of 2.2.0 it's no longer possible to delegate (via the @Delegate annotation) to a method
whose name contains a dollar ($) character. The attached test case compiles and runs without
error under Groovy 2.1.3 and 2.1.6, but fails to compile with the following error under 2.2.0:
> > Caught: groovy.lang.MissingMethodException: No signature of method: Delegating.te$t()
is applicable for argument types: (java.lang.Integer) values: [42]
> > Possible solutions: test(java.lang.Integer), wait(), getAt(java.lang.String), wait(long),
wait(long, int), dump()



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message