db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kahat...@apache.org
Subject svn commit: r1336526 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/memory/Derby5730Test.java
Date Thu, 10 May 2012 08:13:56 GMT
Author: kahatlen
Date: Thu May 10 08:13:55 2012
New Revision: 1336526

URL: http://svn.apache.org/viewvc?rev=1336526&view=rev
Log:
DERBY-5753: Derby5730Test fails on Java 5

Manually load the embedded driver in the sub-process so that
it's found on platforms that don't support driver autoloading.

Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/memory/Derby5730Test.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/memory/Derby5730Test.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/memory/Derby5730Test.java?rev=1336526&r1=1336525&r2=1336526&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/memory/Derby5730Test.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/memory/Derby5730Test.java
Thu May 10 08:13:55 2012
@@ -107,7 +107,8 @@ public class Derby5730Test extends BaseT
      * between. Eventually runs out of memory if DERBY-5730 is not fixed.
      * Must run with capped memory size (-Xmx16M) to expose the memory leak.
      */
-    public static void main(String[] args) throws SQLException {
+    public static void main(String[] args) throws Exception {
+        Class.forName("org.apache.derby.jdbc.EmbeddedDriver");
         for (int i = 0; i < FUNCTIONS.length; i++) {
             Connection c = DriverManager.getConnection(
                     "jdbc:derby:memory:derby5730;create=true");



Mime
View raw message