This is an automated email from the ASF dual-hosted git repository.

jaikiran pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ant.git


The following commit(s) were added to refs/heads/master by this push:
     new 3b585e51b no longer necessary to set this system property since Ant no 
longer uses SecurityManager for Java 18+ versions
3b585e51b is described below

commit 3b585e51bb5ae2cd549acb9ae394c762d38be672
Author: Jaikiran Pai <jaiki...@apache.org>
AuthorDate: Tue Sep 12 12:36:06 2023 +0530

    no longer necessary to set this system property since Ant no longer uses 
SecurityManager for Java 18+ versions
---
 build.xml | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/build.xml b/build.xml
index fdaa94524..b2309d000 100644
--- a/build.xml
+++ b/build.xml
@@ -1744,9 +1744,6 @@ ${antunit.reports}
         <javaversion atleast="9"/>
       </not>
     </condition>
-    <condition property="java.security.manager" value="allow">
-      <javaversion exactly="18"/>
-    </condition>
     <macrodef name="test-junit">
       <element name="junit-nested" implicit="true"/>
       <sequential>
@@ -1797,13 +1794,6 @@ ${antunit.reports}
           <syspropertyset>
             <propertyref name="sun.io.useCanonCaches"/>
           </syspropertyset>
-          <!-- Many JUnit tests, in the Ant project, launch Java programs 
through Ant's
-           java task, which internally calls System.setSecurityManager(). In 
Java 18
-           an explicit system property value needs to be set to prevent 
exception from
-           being thrown from that call -->
-          <syspropertyset>
-            <propertyref name="java.security.manager"/>
-          </syspropertyset>
           <classpath>
             <path refid="tests-runtime-classpath"/>
             <pathelement location="${junit.collector.dir}"/>

Reply via email to