On 6/29/05, Laurie Harper <[EMAIL PROTECTED]> wrote: > Yaakov Chaikin wrote: > > Here is the line from the spec: > > A Serializable class must do the following: > > ..... > > Have access to the no-arg constructor of its first non-serializable > > superclass > > .... > > > > What does this mean and why do you need this requirement? But it does > > It means that if you have an inheritance hierarchy and any class in that > hierarchy implements serializable, that class's parent must provide a > no-arg constructor. That's necessary so that the serializable class can be > instantiated by the deserialization process.
Yes, I understand the obvious. How does the deserialization use the no-arg constructor of the parent? Why wouldn't you need the no-arg constructor of this class itself (assuming it would call the newInstance() method)? Why "first non-serializatible superclass"? This is what I am really asking. Thanks, Yaakov. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]