db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Knut Anders Hatlen (Updated) (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (DERBY-5609) Prepare old test harness for running tests on Java 8
Date Wed, 08 Feb 2012 21:16:59 GMT

     [ https://issues.apache.org/jira/browse/DERBY-5609?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Knut Anders Hatlen updated DERBY-5609:
--------------------------------------

    Fix Version/s: 10.9.0.0

Derbyall passed. Committed revision 1242098.

I also plan to backport the fix to 10.8.
                
> Prepare old test harness for running tests on Java 8
> ----------------------------------------------------
>
>                 Key: DERBY-5609
>                 URL: https://issues.apache.org/jira/browse/DERBY-5609
>             Project: Derby
>          Issue Type: Improvement
>          Components: Test
>    Affects Versions: 10.9.0.0
>            Reporter: Knut Anders Hatlen
>            Assignee: Knut Anders Hatlen
>             Fix For: 10.9.0.0
>
>         Attachments: jdk18.diff
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message