Method reference double-colon syntax
Brian Goetz
brian.goetz at oracle.com
Thu May 31 06:22:35 PDT 2012
> Another way to use the # in a future release would be to introduce literals for members of classes.
Well-covered ground. Through target typing, it would indeed be possible
to convert method references (Foo::bar) into Method objects or
MethodHandle objects. (The same syntax can be extended to fields being
converted to Field objects.) We've chosen to not do so for 8, but were
careful to leave room for this in the future.
More information about the lambda-dev
mailing list