Method References

Neal Gafter neal at gafter.com
Fri Feb 26 10:10:02 PST 2010


On Fri, Feb 26, 2010 at 10:11 AM, Rémi Forax <forax at univ-mlv.fr> wrote:
> How do you expect to resolve generic method call ?
>
> class A {
>   static <T> T identity(T t) { ... }
> }
>
> A#identity   ???
>
>
> In that case, is A#identity.("foo") equivalent to A.identity("foo") ?

That is not a syntax I proposed to support.  My specification is at
<http://www.javac.info/closures-v06a.html>.

Cheers,
Neal


More information about the lambda-dev mailing list