Serialization and Docs

1999-01-11 Thread Aaron M. Renn
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

Re: Serialization and Docs

1999-01-12 Thread Brian Jones
"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.

Re: Serialization and Docs

1999-01-12 Thread Godmar Back
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