[ https://issues.apache.org/jira/browse/DERBY-7087?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17217737#comment-17217737 ]
Richard N. Hillegas commented on DERBY-7087: -------------------------------------------- Attaching derby-7087-01-aa-runOnJDK15.diff. This patch makes several changes so that the Derby tests will run cleanly on JDK15. After applying this patch and building with Java 9, the classpath and modulepath tests run cleanly on both JDK 9 and JDK 15. This patch touches the following files: {noformat} M java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/harness/JavaVersionHolder.java Makes this test support class recognize version strings for Java 12 through 19. M java/build/org/apache/derbyBuild/lastgoodjarcontents/insane.derbyTesting.jar.lastcontents M java/build/org/apache/derbyBuild/lastgoodjarcontents/sane.derbyTesting.jar.lastcontents A java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/harness/jdk112.java A java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/harness/jdk113.java A java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/harness/jdk114.java A java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/harness/jdk115.java A java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/harness/jdk116.java A java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/harness/jdk117.java A java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/harness/jdk118.java A java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/harness/jdk119.java This adds support classes for Java 12 through 19. This is for the non-JUnit tests. Given the cadence at which new Java versions now appear, we should consider revamping how the old-style tests support them. This patch does not make any radical changes. M java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/suites/derbyall.properties M java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/derbynet/SSLTest.java Disables the SSL tests on Java 10 and above. These tests were broken by a "won't fix" JDK 10 regression described by https://bugs.openjdk.java.net/browse/JDK-8211426. {noformat} > Make it possible to build and run tests cleanly on Java 15 > ---------------------------------------------------------- > > Key: DERBY-7087 > URL: https://issues.apache.org/jira/browse/DERBY-7087 > Project: Derby > Issue Type: Task > Components: Build tools > Affects Versions: 10.16.0.0 > Reporter: Richard N. Hillegas > Assignee: Richard N. Hillegas > Priority: Major > Attachments: derby-7087-01-aa-runOnJDK15.diff > > > Make the following possible: > * Be able to use Java 15 to cleanly run tests against jars which were built > using JDK 11. > * Make it possible to cleanly build and run tests using JDK 15. -- This message was sent by Atlassian Jira (v8.3.4#803005)