[concurrency-interest] Concurrent Serialization Pattern

Bob Lee crazybob at crazybob.org
Fri Sep 15 02:16:34 EDT 2006


It only works for constants. :(

On 9/14/06, David Holmes <dcholmes at optusnet.com.au> wrote:
> Kevin,
>
> > I didn't realize that the final sematics had
> > precedence over the transient qualifier, so I incorrectly thought that
> > lock would have the default null value after deserialization.
>
> According to my reading of the serialization spec it *should* have a null
> value. transient fields don't get serialized, unless you custom serialize
> them. So a transient final field should have its default initialized value
> when readObject is invoked.
>
> Something seems amiss here.
>
> David Holmes
>
> _______________________________________________
> Concurrency-interest mailing list
> Concurrency-interest at altair.cs.oswego.edu
> http://altair.cs.oswego.edu/mailman/listinfo/concurrency-interest
>


More information about the Concurrency-interest mailing list