Paul King created GROOVY-12835:
----------------------------------
Summary: Call syntax on native lambdas and coercion proxies from
dynamic code
Key: GROOVY-12835
URL: https://issues.apache.org/jira/browse/GROOVY-12835
Project: Groovy
Issue Type: Improvement
Reporter: Paul King
Dynamic Groovy calls a closure with f(x), but f(x) and f.call(x) on a native
lambda, a method reference or a coercion proxy (\{ it } as Function) throw
MissingMethodException, although dynamic code receives such values from
statically compiled code, Java libraries (Function.identity()) and as coercion.
Let call syntax on these values invoke the abstract method of their functional
interface, as a last resort after the existing MOP fallbacks; no other object
becomes callable. See GEP-35 and PR #3363
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)