Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-5609

Prepare old test harness for running tests on Java 8

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 10.9.1.0
    • 10.8.3.0, 10.9.1.0
    • Test
    • None

    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)

      We need to add the org.apache.derbyTesting.functionTests.harness.jdk18 class to make the tests run on Java 8.

      Attachments

        1. jdk18.diff
          3 kB
          Knut Anders Hatlen

        Activity

          People

            knutanders Knut Anders Hatlen
            knutanders Knut Anders Hatlen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: