Using finalizers like this is a bad idea. I did this years ago.

At least call super() in a finally block, but I'll see if this can
be cleaned.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6039 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2010-02-17 02:38:11 +00:00
parent 83f71c606e
commit cbaa8e480e
@@ -120,10 +120,13 @@ public class InvocationMarshaller
protected void finalize ()
throws Throwable
{
if (_invId != null && getClass() != ListenerMarshaller.class) {
log.warning("Invocation listener never responded to: " + _invId);
try {
if (_invId != null && getClass() != ListenerMarshaller.class) {
log.warning("Invocation listener never responded to: " + _invId);
}
} finally {
super.finalize();
}
super.finalize();
}
/** On the server, the id of the invocation method. */