[jdom-interest] org.jdom.Namespace not implementing Serializable

Jason Hunter jhunter at servlets.com
Thu Nov 21 16:34:50 PST 2002


In the end we decided Namespaces shouldn't be serializable, and rather
Element and Attribute handle that data serialization.  Look for
readObject/writeObject in those classes.

Of course, using serialization is not the way to make deep copies.  Try
clone().

-jh-

Paul Reeves wrote:
> 
> Hi, i need to do a deep copy of an object containing a jdom doc, namespaces
> etc - i've searched through the archives and found the following answer from
> Jason Hunter back in July 2000 but in never made beta8 - are there any plans
> to do this still???
> 
> >1.  Should Namespace be Serializable?
> 
> Yes, and making it so is in our public TODO.txt under CVS.
> 
> >2.  Anybody got any idea why RMI tries to serialize Namespace in the first
> >place when I'm only trying to pass around an instance of a Document  (which
> >contains no references to Namespace)?
> 
> Jools answered this well.
> 
> -jh-
> 
> _________________________________________________________________
> MSN 8 with e-mail virus protection service: 2 months FREE*
> http://join.msn.com/?page=features/virus
> 
> _______________________________________________
> To control your jdom-interest membership:
> http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com





More information about the jdom-interest mailing list