Description
When running an old harness test with a Java 8 preview (available from http://jdk8.java.net/download.html), it'll fail like this:
$ java org.apache.derbyTesting.functionTests.harness.RunTest lang/supersimple.sql
– listing properties –
derby.locks.deadlockTimeout=3
derby.locks.waitTimeout=3
WHOA, javavm is NULL
Process exception: java.lang.ClassNotFoundException: org.apache.derbyTesting.functionTests.harness.jdk18
-
-
- Start: supersimple jdk1.8.0-ea 2012-02-08 20:29:59 ***
Exception in thread "main" java.lang.ClassNotFoundException: org.apache.derbyTesting.functionTests.harness.jdk18
at java.net.URLClassLoader$1.run(URLClassLoader.java:359)
at java.net.URLClassLoader$1.run(URLClassLoader.java:348)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:347)
at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:181)
at org.apache.derbyTesting.functionTests.harness.jvm.getJvm(jvm.java:217)
at org.apache.derbyTesting.functionTests.harness.RunTest.buildTestCommand(RunTest.java:2267)
at org.apache.derbyTesting.functionTests.harness.RunTest.testRun(RunTest.java:490)
at org.apache.derbyTesting.functionTests.harness.RunTest.main(RunTest.java:360)
- Start: supersimple jdk1.8.0-ea 2012-02-08 20:29:59 ***
-
We need to add the org.apache.derbyTesting.functionTests.harness.jdk18 class to make the tests run on Java 8.