[
https://issues.apache.org/jira/browse/DERBY-6998?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16629467#comment-16629467
]
Rick Hillegas commented on DERBY-6998:
--------------------------------------
Attaching derby-6998-03-aa-reenableEncryptionTestsOnJDK11.diff. This patch
re-enables the old-harness encryption tests, which weren't running when the JVM
was Java 11.
The problem was that our test machinery was not parsing the JVM version
correctly and thought that Java 11 came before Java 1.2.
I am running regression tests now on Java 9. Even with this change, there is
still an outstanding problem with Java 11: the JUnit SSLTest fails on that
platform.
Touches the following files:
{noformat}
----------------------------
M
java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/harness/JavaVersionHolder.java
Use 1.10.0 as the version string for Java 10 and 1.11.0 as the version
string for Java 11 rather than 10.0.1 and 11.0.1 respectively.
----------------------------
M
java/build/org/apache/derbyBuild/lastgoodjarcontents/insane.derbyTesting.jar.lastcontents
M
java/build/org/apache/derbyBuild/lastgoodjarcontents/sane.derbyTesting.jar.lastcontents
D
java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/harness/jdk100.java
R +
java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/harness/jdk110.java
A +
java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/harness/jdk111.java
Correspondingly rename jdk100 as jdk110 and rename jdk110 as jdk111.
{noformat}
> Make it possible to build Derby cleanly using JDK 10
> ----------------------------------------------------
>
> Key: DERBY-6998
> URL: https://issues.apache.org/jira/browse/DERBY-6998
> Project: Derby
> Issue Type: Bug
> Components: Build tools
> Affects Versions: 10.15.0.0
> Reporter: Rick Hillegas
> Priority: Major
> Attachments: derby-6998-01-ab-tightenReturnType.diff,
> derby-6998-02-aa-supportForJDK11.diff,
> derby-6998-03-aa-reenableEncryptionTestsOnJDK11.diff
>
>
> When I build Derby using JDK 10, I get the following warning:
> {noformat}
> [javac]
> /Users/rhillegas/derby/mainline/trunk/java/engine/org/apache/derby/iapi/types/SqlXmlUtil.java:728:
> warning: [unchecked] getPrefixes(String) in NullNamespaceContext implements
> getPrefixes(String) in NamespaceContext
> [javac] public Iterator getPrefixes(String namespaceURI) {
> [javac] ^
> [javac] return type requires unchecked conversion from Iterator to
> Iterator<String>
> [javac] 1 warning
> {noformat}
> I will clean this up.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)