You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Rick Hillegas (JIRA)" <ji...@apache.org> on 2018/05/28 22:25:00 UTC
[jira] [Commented] (DERBY-6998) Make it possible to build Derby
cleanly using JDK 10
[ https://issues.apache.org/jira/browse/DERBY-6998?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16492940#comment-16492940 ]
Rick Hillegas commented on DERBY-6998:
--------------------------------------
Attaching derby-6998-01-ab-tightenReturnType.diff. This patch tightens a generic type declaration so that the warning no longer appears. This patch also turns off the echoproperties call in the master build script. No-one has taken advantage of the extra output and it is overwhelming. I will run tests on both Java 9 and Java 10.
Touches the following file:
{noformat}
-----------------------
M build.xml
Turn off the echoproperties diagnostic.
-----------------------
M java/build/org/apache/derbyBuild/lastgoodjarcontents/insane.derbyTesting.jar.lastcontents
M java/build/org/apache/derbyBuild/lastgoodjarcontents/sane.derbyTesting.jar.lastcontents
M java/build/org/apache/derbyBuild/lastgoodjarcontents/sane.derbytools.jar.lastcontents
M java/testing/org/apache/derbyTesting/functionTests/harness/JavaVersionHolder.java
A java/testing/org/apache/derbyTesting/functionTests/harness/jdk100.java
Make the tests recognize JDK 10.
-----------------------
M java/engine/org/apache/derby/iapi/types/SqlXmlUtil.java
Fix the new warning raised when we compile this class using JDK 10.
{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
>
>
> 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)