this class is now able to read old serialized versions
of itself.
This commit is contained in:
parent
e4cbb1c5fb
commit
0332e4c430
1 changed files with 5 additions and 1 deletions
|
@ -53,7 +53,11 @@ public final class Property implements IProperty, Serializable, Cloneable {
|
||||||
dvalue = in.readDouble ();
|
dvalue = in.readDouble ();
|
||||||
break;
|
break;
|
||||||
case NODE:
|
case NODE:
|
||||||
|
// try to convert from old format
|
||||||
|
if (node.version > 4)
|
||||||
nhandle = (NodeHandle) in.readObject ();
|
nhandle = (NodeHandle) in.readObject ();
|
||||||
|
else
|
||||||
|
nhandle = new NodeHandle (new DbKey (null, in.readUTF ()));
|
||||||
break;
|
break;
|
||||||
case JAVAOBJECT:
|
case JAVAOBJECT:
|
||||||
jvalue = in.readObject ();
|
jvalue = in.readObject ();
|
||||||
|
|
Loading…
Add table
Reference in a new issue