commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r820668 - /commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/Descriptor.java
Date Thu, 01 Oct 2009 14:23:30 GMT
Author: mturk
Date: Thu Oct  1 14:23:29 2009
New Revision: 820668

URL: http://svn.apache.org/viewvc?rev=820668&view=rev
Log:
Always dereference the context

Modified:
    commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/Descriptor.java

Modified: commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/Descriptor.java
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/Descriptor.java?rev=820668&r1=820667&r2=820668&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/Descriptor.java
(original)
+++ commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/Descriptor.java
Thu Oct  1 14:23:29 2009
@@ -132,8 +132,11 @@
     public final void close()
         throws IOException
     {
-        close0();
-        CONTEXT = null;
+        try {
+            close0();
+        } finally {
+            CONTEXT = null;
+        }
     }
 
     /**



Mime
View raw message