[concurrency-interest] Concurrent Serialization Pattern
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:
> > 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
More information about the Concurrency-interest