Lambdas and serialization

Brian Goetz brian.goetz at oracle.com
Tue Oct 19 09:49:51 PDT 2010


Yes, yes, and yes.  

It will be very bad to assign a lambda to a Serializable SAM type and have it not be serialiazable.  

This is as much a question for the JSR-292 expert group (Remi?) as for us.  We don't have an answer yet but this is an important requirement.

On Oct 19, 2010, at 6:11 AM, Alessio Stalla wrote:

> Hello,
> 
> I just thought about an aspect that I don't recall having been
> mentioned on this list: if a lambda's target SAM type is serializable,
> will the SAM-converted lambda be guaranteed to be serializable as
> well? Or is it an unspecified implementation detail? I see a certain
> value in having serialization work for lambdas, but also a host of
> potential problems...
> 
> Regards,
> Alessio
> 



More information about the lambda-dev mailing list