You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-commits@db.apache.org by rh...@apache.org on 2017/01/19 02:32:32 UTC
svn commit: r1779411 -
/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/harness/RunTest.java
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);
}
/*