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

sai_boorlagadda pushed a commit to branch feature/GEODE-10531
in repository https://gitbox.apache.org/repos/asf/geode.git

commit 9f2f47bbcf780511f5f5febd2f71b9ba8acc536e
Author: Sai Boorlagadda <[email protected]>
AuthorDate: Thu Dec 11 15:06:58 2025 -0800

    GEODE-10531: Remove deprecated SecurityManager APIs for Java 21 
compatibility
---
 .../src/main/java/org/apache/geode/logging/internal/OSProcess.java  | 6 ------
 1 file changed, 6 deletions(-)

diff --git 
a/geode-logging/src/main/java/org/apache/geode/logging/internal/OSProcess.java 
b/geode-logging/src/main/java/org/apache/geode/logging/internal/OSProcess.java
index f5614e6df2..a9ef530443 100644
--- 
a/geode-logging/src/main/java/org/apache/geode/logging/internal/OSProcess.java
+++ 
b/geode-logging/src/main/java/org/apache/geode/logging/internal/OSProcess.java
@@ -135,8 +135,6 @@ public class OSProcess {
    *        inherited from the parent process and will overwrite same keys
    * @return the process id of the created process; -1 on failure
    * @exception SecurityException if the current thread cannot create a 
subprocess.
-   * @see java.lang.SecurityException
-   * @see java.lang.SecurityManager#checkExec(java.lang.String)
    */
   public static int bgexec(String[] cmdarray, File workdir, File logfile, 
boolean inheritLogfile,
       Map<String, String> env) throws IOException {
@@ -197,10 +195,6 @@ public class OSProcess {
       throw new IOException(String.format("the executable %s does not exist",
           cmd.getPath()));
     }
-    SecurityManager security = System.getSecurityManager();
-    if (security != null) {
-      security.checkExec(cmdarray[0]);
-    }
     if (workdir != null && !workdir.isDirectory()) {
       String curDir = new File("").getAbsolutePath();
       System.out.println(

Reply via email to