[jira] [Updated] (GROOVY-9239) Java compatibility: consider supporting method reference with generics

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Updated] (GROOVY-9239) Java compatibility: consider supporting method reference with generics

Eric Milles (Jira)

     [ https://issues.apache.org/jira/browse/GROOVY-9239?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eric Milles updated GROOVY-9239:
--------------------------------
    Summary: Java compatibility: consider supporting method reference with generics  (was: Add support for method reference with generics)

> Java compatibility: consider supporting method reference with generics
> ----------------------------------------------------------------------
>
>                 Key: GROOVY-9239
>                 URL: https://issues.apache.org/jira/browse/GROOVY-9239
>             Project: Groovy
>          Issue Type: Improvement
>          Components: parser-antlr4
>            Reporter: Eric Milles
>            Priority: Minor
>
> A bit of a rare use case, but ran into it and noticed {{MethodReferenceExpression}} has no support for this sort thing.  Java supports generics for method references.
> For example:
> {code:groovy}
> def <T extends CharSequence> T chars() { ... }
> Supplier s = this::<String>chars
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)