Re: Serialization Issue



On Sun, 30 Mar 2008 20:27:57 -0700 (PDT), mearvk <mearvk@xxxxxxxxx>
wrote, quoted or indirectly quoted someone who said :

public class SerializableArea extends Area implements Serializable
{
public SerializableArea()
{
super();
}

public SerializableArea(Shape s)
{
super(s);
}
}


Just plopping on "Serializable" is not sufficient. You must deal with
transient fields in the parent with code to restore them. You are
hosed if there are non-transient references to non-serializable
classes in the parent class.

see http://mindprod.com/jgloss/serialization.html
--

Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
.