JEP 302: Lambda Leftovers
Brian Goetz
brian.goetz at oracle.com
Wed Dec 7 20:01:36 UTC 2016
This was explored during JSR-335, and we couldn't really justify it at
the time, but it periodically comes around again. This isn't really a
fault of method refs; it's more intrinsic to static members (you have
the same problem if you want to refer to the lock that guards static
synchronized methods, for example, though with your 'class' suggestion,
this would be called 'class.class', which is not entirely clear.)
Anyway, this is off-topic, so let's get back to the JEPs...
On 12/7/2016 5:30 AM, Nicolai Parlog wrote:
> // `isGenderNeutralName` is a static method
> names.filter(class::isGenderNeutralName)
More information about the platform-jep-discuss
mailing list