You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by mt...@apache.org on 2009/10/01 16:23:30 UTC
svn commit: r820668 -
/commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/Descriptor.java
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;
+ }
}
/**