You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Daniel Sun (JIRA)" <ji...@apache.org> on 2019/06/15 14:41:00 UTC
[jira] [Comment Edited] (GROOVY-9172) Make `Closure` implement
`Supplier`
[ https://issues.apache.org/jira/browse/GROOVY-9172?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16864714#comment-16864714 ]
Daniel Sun edited comment on GROOVY-9172 at 6/15/19 2:40 PM:
-------------------------------------------------------------
The improvement looks not easy to complete as {{V call(Object arguments)}} has been occupied by {{Closure}}, so {{V call(T1 arg1)}} of {{Closure1<T1, V>}} causes compilation failure...
was (Author: daniel_sun):
The improvement looks not easy to complete as {{V call(Object arguments)}} has been occupied by {{Closure}}, so {{V call(T1 arg1)}} of {{Closure1<T1, V>}} cause compilation failure...
> Make `Closure` implement `Supplier`
> -----------------------------------
>
> Key: GROOVY-9172
> URL: https://issues.apache.org/jira/browse/GROOVY-9172
> Project: Groovy
> Issue Type: Improvement
> Reporter: Daniel Sun
> Assignee: Daniel Sun
> Priority: Major
> Time Spent: 10m
> Remaining Estimate: 0h
>
> Creating dynamic proxy could be avoided if {{Closure}}/sub-classes, e.g. {{Closure0<V>}}, {{Closure1<T1, V>}}, etc implement functional interfaces, e.g. `Function`, `Supplier`, etc.
> (As a reminder, lambda expressions are actually closures in dynamic compilation mode)
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)