[ https://issues.apache.org/jira/browse/DERBY-7126?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17435620#comment-17435620 ]
Richard N. Hillegas commented on DERBY-7126: -------------------------------------------- Attaching derby-7126-01-aa-regenerateSignedJars.diff. This patch fixes DatabaseClassLoadingTest so that it runs cleanly on JDK 18. The patch includes corrected/additional header comments explaining how to regenerate the signed jars used by this test. It also includes the regenerated jars produced by following those instructions. The jars are now signed using a DSA cryptographic hash instead of the deprecated SHA-1. With these changes, Derby builds cleanly (including javadoc) under both Java 11 and Java 18. I ran the following tests on jar files built with JDK 18: o The full tests using the classpath run against JDK 11. o The full tests using the modulepath run against JDK 11. o The full tests using the classpath run against JDK 18. o The full tests using the modulepath run against JDK 18. Touches the following files: {noformat} M java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/lang/DatabaseClassLoadingTest.java New instructions in the header comments for regenerating the signed jars used by the test. M java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/lang/dcl_emc2s.jar M java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/lang/dcl_emc2sm.jar Regenerated, signed jars. The first jar is an intact, signed jar. The second one is a corrupted jar: a hacked class is poked into the already signed jar. {noformat} > Make it possible to build and test Derby cleanly with OpenJDK 18 > ---------------------------------------------------------------- > > Key: DERBY-7126 > URL: https://issues.apache.org/jira/browse/DERBY-7126 > 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_7126_A.java, > derby-7126-01-aa-regenerateSignedJars.diff > > > Releases of Open JDK 18 can be found at https://jdk.java.net/178. We should > adjust Derby as necessary so that it builds cleanly (including javadoc) and > tests cleanly with this version of the platform. -- This message was sent by Atlassian Jira (v8.3.4#803005)