db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhille...@apache.org
Subject svn commit: r1779411 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/harness/RunTest.java
Date Thu, 19 Jan 2017 02:32:32 GMT
Author: rhillegas
Date: Thu Jan 19 02:32:32 2017
New Revision: 1779411

URL: http://svn.apache.org/viewvc?rev=1779411&view=rev
Log:
DERBY-6856: Fix the old-style test harness to run with recent jigsaw-related changes introduced
in JDK 9; tests passed cleanly on derby-6856-11-aa-jigsawResourceLocation.diff.

Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/harness/RunTest.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/harness/RunTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/harness/RunTest.java?rev=1779411&r1=1779410&r2=1779411&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/harness/RunTest.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/harness/RunTest.java
Thu Jan 19 02:32:32 2017
@@ -2905,7 +2905,7 @@ clp.list(System.out);
      * @return InputStream for the resource
      */
     public static InputStream loadTestResource(String loc) {
-        return new Object().getClass().getResourceAsStream(testResourceHome + loc); 
+        return RunTest.class.getResourceAsStream(testResourceHome + loc); 
     }
     
     /*



Mime
View raw message