jozart at csi.com
Wed Apr 18 04:33:40 PDT 2001
wregwrg wegwegweg writes:
> Why is the namespace variable in Element transient
> and why isn't namespace Serializable.
The namespace variable is transient because it isn't serializable :)
One reason Namespace isn't serializable (I suspect) is because in order to
deserialize Namespace.NO_NAMESPACE properly, we'd need to use readResolve,
but that method has only been around since JDK1.2.
Element is supposed to [de]serialize the Namespace prefix and uri itself, in
a custom manner.
I don't know why this isn't working.
----- original message -----
wregwrg wegwegweg buccaneer12 at hotmail.com
Wed, 18 Apr 2001 11:14:42 -0000
Hi, I am using a CVS Snapshot from April 17th 2001.
I am trying tio Serialize and deserialize JDOM-Documents.
When I try to print a deserialized Document using XMLOutputter, I am getting
That is due to org.jdom.Element.getQualifiedName invokes a Method on a
variable of type namespace which is declared transient without checking
whether the object is null or not. I think this causes the
Why is the namespace-Variable in Element transient and why isn't namespace
More information about the jdom-interest