We can't allow the primary ctor to be called for EntryUpdated/RemovedEvent

because that will overwrite the hackery we do with _oldEntry. Oh hackery, how
we love you so.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6586 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2011-04-02 04:02:12 +00:00
parent 12b8aa0a2a
commit 63c967d8d2
2 changed files with 16 additions and 1 deletions
@@ -48,7 +48,14 @@ public class EntryRemovedEvent<T extends DSet.Entry> extends EntryEvent<T>
{
super(targetOid, name);
_key = key;
_oldEntry = oldEntry;
}
/** For unserialization. */
public EntryRemovedEvent ()
{
super(0, null);
// we can't allow our primary ctor to be called during unserialization, or it will wipe out
// the hackery we do with _oldEntry
}
@Override
@@ -52,6 +52,14 @@ public class EntryUpdatedEvent<T extends DSet.Entry> extends EntryEvent<T>
_oldEntry = oldEntry;
}
/** For unserialization. */
public EntryUpdatedEvent ()
{
super(0, null);
// we can't allow our primary ctor to be called during unserialization, or it will wipe out
// the hackery we do with _oldEntry
}
@Override
public Comparable<?> getKey ()
{