--------------------------------------------------------------------------
 Java Programmer          Scott Gregory Miller          Linux afficionado
 Graphics Designer        [EMAIL PROTECTED]              General Loony
--------------------------------------------------------------------------
On Sat, 12 Sep 1998, Aaron M. Renn wrote:

> Stuart Ballard wrote:
> > Yes! I submitted this exact bug report to JavaSoft just yesterday as I
> > realised it was true for many non-public or inner classes within
> > Collections. I'll provide a bug number as soon as I get one, and I'll
> > put at least 1 of my bug votes onto it too.
> 
> I'll add my votes as well.  In addition to the lack of inner/internal class
> documentation, the serialization docs also don't say what the fields are
> actually supposed to contain.  If I store one thing in a specified field
> when Sun expects something else, this will break things too.  We need an
> explanation of what the serialized fields are supposed to be used for as
> well.

They seem to, maybe not everywhere at this time, but from
java.util.Vector:

   Serialized Form - Fields

  capacityIncrement

int capacityIncrement

   The amount by which the capacity of the vector is automatically
          incremented when its size becomes greater than its capacity. If
          the capacity increment is 0, the capacity of the vector is
          doubled each time it needs to grow.
int elementCount

   The number of valid components in this Vector object. Components
          elementData[0] through elementData[elementCount-1] are the
          actual items.
     _________________________________________________________________

  elementData

Object[] elementData

   The array buffer into which the components of the vector are stored.
          The capacity of the vector is the length of this array buffer,
          and is at least large enough to contain all the vector's
          elements.

          Any array elements following the last element in the Vector are
          null.

        Scott

--------------------------------------------------------------------------
 Java Programmer          Scott Gregory Miller          Linux afficionado
 Graphics Designer        [EMAIL PROTECTED]              General Loony
--------------------------------------------------------------------------


Reply via email to