You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Paul King (JIRA)" <ji...@apache.org> on 2017/05/02 02:04:18 UTC
[jira] [Closed] (GROOVY-6454) Can't delegate (with the @Delegate
annotation) to a method whose name contains a dollar ($) character
[ https://issues.apache.org/jira/browse/GROOVY-6454?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul King closed GROOVY-6454.
-----------------------------
> 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
> Assignee: Paul King
> Labels: regression
> Fix For: 2.5.0-alpha-1
>
> 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.15#6346)