[ 
https://issues.apache.org/jira/browse/DERBY-7110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17370302#comment-17370302
 ] 

Richard N. Hillegas commented on DERBY-7110:
--------------------------------------------

Attaching derby-7110-03-aa-forkAntJavaTask.diff. This patch suppresses the new 
warnings which appeared when compiling Derby with 17-ea+28-2534. With this 
patch, I can cleanly build Derby, including jar files and javadoc.

The new warnings were coming from the message splitting/verifying programs 
which we run as part of compilation. The warnings are runtime diagnostics 
produced when java.lang.System.setSecurityManager() is called by some machinery 
internal to the ant <java> task. I don't know why these warnings appear with 
17-ea+28-2534 but not with the previous Open JDK 17 builds. I assume that this 
is related to more work on JEP 411.

I suppressed the warnings by adding

{noformat}
fork="yes"
{noformat}

directives to the <java> invocations. No doubt the warnings are still being 
produced, but with the forked JVM they go into a logfile which we don't examine.

I will run the usual tests. Touches the following file:

{noformat}
M       build.xml
{noformat}


> Make it possible to build and test Derby cleanly with OpenJDK 17
> ----------------------------------------------------------------
>
>                 Key: DERBY-7110
>                 URL: https://issues.apache.org/jira/browse/DERBY-7110
>             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-7110-01-aa-removeAngleBrackets.diff, 
> derby-7110-02-aa-suppressWarnings.diff, derby-7110-03-aa-forkAntJavaTask.diff
>
>
> Releases of Open JDK 17 can be found at https://jdk.java.net/17/. 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)

Reply via email to