The readField()/writeField() methods are for marshalling objects that have
basic streamers defined for them (String, Integer, Boolean) and not other arbitrary objects. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3863 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -81,7 +81,7 @@ public class ElementUpdatedEvent extends NamedEvent
|
||||
public override function writeObject (out :ObjectOutputStream) :void
|
||||
{
|
||||
super.writeObject(out);
|
||||
out.writeField(_value);
|
||||
out.writeObject(_value);
|
||||
out.writeInt(_index);
|
||||
}
|
||||
|
||||
@@ -89,7 +89,7 @@ public class ElementUpdatedEvent extends NamedEvent
|
||||
public override function readObject (ins :ObjectInputStream) :void
|
||||
{
|
||||
super.readObject(ins);
|
||||
_value = ins.readField(Object);
|
||||
_value = ins.readObjct();
|
||||
_index = ins.readInt();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user