ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jaikiran Pai <>
Subject Re: new warnings produced by <java> task under Open JDK 17-ea+28-2534
Date Mon, 28 Jun 2021 03:29:46 GMT
Hello Rick,

Thank you for this report. We have been watching this area and have been 
aware of this issue, including one other user report[1]. I'm just 
waiting for things to become a bit more clear on this front before 
coming up with any proposal in the Ant project on how to deal with this. 
Clearly our permissions[2] type and the whole security manager based 
implementation will be impacted and needs a rethink.

For the java task, we by default apply certain permissions when run 
without "fork". That's what is triggering this warning. It has been 
there in the build 26 EA of JDK 17 as well - of course, that version 
didn't include the exact class which was calling the 
System.setSecurityManager. That additional detail got included recently[3].





On 27/06/21 11:22 pm, Rick Hillegas wrote:
> Open JDK 17 build 17-ea+28-2534 causes the ant 1.10.6 <java> task to 
> produce the following warnings when you DON'T fork the JVM:
> WARNING: A terminally deprecated method in java.lang.System has been 
> called
> WARNING: System::setSecurityManager has been called by 
> (file:/opt/ant/lib/ant.jar)
> For more information, see 

> and 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message