diff options
Diffstat (limited to 'java/src/Ice/CommunicatorI.java')
-rw-r--r-- | java/src/Ice/CommunicatorI.java | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/java/src/Ice/CommunicatorI.java b/java/src/Ice/CommunicatorI.java index 0e027e6844b..3dd2149789e 100644 --- a/java/src/Ice/CommunicatorI.java +++ b/java/src/Ice/CommunicatorI.java @@ -272,20 +272,22 @@ public final class CommunicatorI extends LocalObjectImpl implements Communicator _instance = new IceInternal.Instance(this, properties); } + /** + * For compatibility with C#, we do not invoke methods on other objects + * from within a finalizer. + * protected synchronized void finalize() throws Throwable { - synchronized(this) + if(!_destroyed) { - if(!_destroyed) - { - _instance.logger().warning("Ice::Communicator::destroy() has not been called"); - } + _instance.logger().warning("Ice::Communicator::destroy() has not been called"); } super.finalize(); } + */ // // Certain initialization tasks need to be completed after the |