Re: Serialization Issue
- From: Roedy Green <see_website@xxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 31 Mar 2008 16:29:03 GMT
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
.
- Follow-Ups:
- Re: Serialization Issue
- From: mearvk
- Re: Serialization Issue
- References:
- Serialization Issue
- From: mearvk
- Serialization Issue
- Prev by Date: Re: what is the meaning of stdio.h in ''c'' language?
- Next by Date: Re: More than 1 MouseListener
- Previous by thread: Re: Serialization Issue
- Next by thread: Re: Serialization Issue
- Index(es):