Scott Miller wrote:
> 
> > Hmm..to clarify:  the serialized form documentation mentions two fields
> > which it then omits from its writeObject() / readObject() specification.  If
> > those fields aren't written out to the object stream, then are they
> > unimportant?  And if so, why does the documentation mention them?
> 
> Okay, I didn't see those two fields when I was looking the first time.
> I'm not exactly sure what loadFactor is, but threshold is described..
> These ARE important to serialize.  And in fact, your implementation should
> try to use them.

Actually, my understanding was that this is a new API in 1.2 which
allows both serialized fields and writeObject/readObject to work
together. I haven't looked in detail, but the impression I got is that
you provide a private static array of Strings which say what fields
should be serialized... it's something like that, but it also allows you
to serialize those fields *without* them corresponding to actual fields
of the Object, so you'll have to look it up for the details.

HTH,
Stuart.

Reply via email to