directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From trus...@apache.org
Subject svn commit: r190271 - /directory/network/trunk/src/java/org/apache/mina/common/AbstractIoFilterChain.java
Date Sun, 12 Jun 2005 13:21:21 GMT
Author: trustin
Date: Sun Jun 12 06:21:21 2005
New Revision: 190271

URL: http://svn.apache.org/viewcvs?rev=190271&view=rev
Log:
Fixed: super.finalize() is not called if close() fails.

Modified:
    directory/network/trunk/src/java/org/apache/mina/common/AbstractIoFilterChain.java

Modified: directory/network/trunk/src/java/org/apache/mina/common/AbstractIoFilterChain.java
URL: http://svn.apache.org/viewcvs/directory/network/trunk/src/java/org/apache/mina/common/AbstractIoFilterChain.java?rev=190271&r1=190270&r2=190271&view=diff
==============================================================================
--- directory/network/trunk/src/java/org/apache/mina/common/AbstractIoFilterChain.java (original)
+++ directory/network/trunk/src/java/org/apache/mina/common/AbstractIoFilterChain.java Sun
Jun 12 06:21:21 2005
@@ -534,8 +534,14 @@
     
     protected void finalize() throws Throwable
     {
-        this.clear();
-        super.finalize();
+        try
+        {
+            this.clear();
+        }
+        finally
+        {
+            super.finalize();
+        }
     }
 
     protected abstract void doWrite( IoSession session, WriteRequest writeRequest );



Mime
View raw message