Lambdas and serialization

Bob Lee crazybob at crazybob.org
Tue Oct 19 15:40:26 PDT 2010


On Tue, Oct 19, 2010 at 3:33 PM, Alessio Stalla <alessiostalla at gmail.com>wrote:

> Well, but then the serializable form of any java.* class is not
> necessarily compatible between different JVMs, again because the
> internal details might be different. Default serialization is not
> meant as a standard storage format, rather as a means to store a graph
> of objects into a sequence of bytes and restore it later *using the
> same JVM*.


That's actually not true. If a class is serializable, its serialized form is
part of the published API, and you are guaranteed compatibility across VMs
and VM versions.

Bob


More information about the lambda-dev mailing list