Method reference toString

Brian Goetz brian.goetz at oracle.com
Wed Dec 19 06:21:19 PST 2012


No, the EG has not decided on that to date.

What do you mean by key?  Remember that you can can't count on identity 
for lambdas/method refs, making them unsuitable as keys in Maps...

On 12/19/2012 8:26 AM, Stephen Colebourne wrote:
> Has a decision been taken on the toString() of a method reference? And
> I guess of lambdas more generally?
>
> In JSR-310 I'm starting to use method references as the key for
> parsing (instead of a class reference), but I'd like to be able to use
> the toString() to produce nice error messages as well.
>
> Stephen
>


More information about the lambda-dev mailing list