[
https://issues.apache.org/jira/browse/GROOVY-8658?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Eric Milles resolved GROOVY-8658.
---------------------------------
Resolution: Fixed
Supported by Groovy 3+
> MME on instance receiver via method closure
> -------------------------------------------
>
> Key: GROOVY-8658
> URL: https://issues.apache.org/jira/browse/GROOVY-8658
> Project: Groovy
> Issue Type: Bug
> Affects Versions: 2.5.0
> Reporter: Daniil Ovchinnikov
> Priority: Major
>
> {code:groovy}
> def c = String.&toUpperCase
> c() // IAE: object is not an instance of declaring class
> c("hi") // MME: No signature of method: java.lang.String.toUpperCase() is
> applicable for argument types: (java.lang.String) values: [hi]
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)