this class is now able to read old serialized versions

of itself.
This commit is contained in:
hns 2001-08-05 19:28:44 +00:00
parent e4cbb1c5fb
commit 0332e4c430

View file

@ -53,7 +53,11 @@ public final class Property implements IProperty, Serializable, Cloneable {
dvalue = in.readDouble ();
break;
case NODE:
// try to convert from old format
if (node.version > 4)
nhandle = (NodeHandle) in.readObject ();
else
nhandle = new NodeHandle (new DbKey (null, in.readUTF ()));
break;
case JAVAOBJECT:
jvalue = in.readObject ();