A question about serialization. Do we have to make any instance variables
that aren't supposed to be serialized in the spec as transiet or something?
If we don't have to do that, we need to document which variables are
serialized in our code. This keeps people from changing their names or
elimi
"Aaron M. Renn" <[EMAIL PROTECTED]> writes:
> A question about serialization. Do we have to make any instance variables
> that aren't supposed to be serialized in the spec as transiet or something?
> If we don't have to do that, we need to document which variables are
> serialized in our code.
It depends on what method is used to serialize the class.
If the default method is used, you need to declare transient everything
that is not part of the documented serialized form.
If you write your own writeObject method, declaring things transient
is not needed since you'll have to do everyth
3 matches
Mail list logo