db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kahat...@apache.org
Subject svn commit: r1331265 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/store/EncryptionKeyTest.java
Date Fri, 27 Apr 2012 07:20:40 GMT
Author: kahatlen
Date: Fri Apr 27 07:20:40 2012
New Revision: 1331265

URL: http://svn.apache.org/viewvc?rev=1331265&view=rev
Log:
DERBY-5724: EncryptionKeyTest sometimes keeps reference to connection

Null out the connection unconditionally, also if it is closed.

Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/store/EncryptionKeyTest.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/store/EncryptionKeyTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/store/EncryptionKeyTest.java?rev=1331265&r1=1331264&r2=1331265&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/store/EncryptionKeyTest.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/store/EncryptionKeyTest.java
Fri Apr 27 07:20:40 2012
@@ -127,8 +127,8 @@ public abstract class EncryptionKeyTest
         if (con != null && !con.isClosed()) {
             con.rollback();
             con.close();
-            con = null;
         }
+        con = null;
         super.tearDown();
     }
 



Mime
View raw message