You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwebbeans.apache.org by st...@apache.org on 2026/07/19 17:01:56 UTC

(openwebbeans) 02/02: OWB-1467 remove SecurityManager from WebBeansConfiguration

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

asf-gitbox-commits pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/openwebbeans.git

commit f00686efc8cc9dd31f5a9bc8679e2a08a7f0bc87
Author: Mark Struberg <st...@apache.org>
AuthorDate: Sun Jul 19 19:01:19 2026 +0200

    OWB-1467 remove SecurityManager from WebBeansConfiguration
---
 .../webbeans/config/OpenWebBeansConfiguration.java | 28 +---------------------
 1 file changed, 1 insertion(+), 27 deletions(-)

diff --git a/webbeans-impl/src/main/java/org/apache/webbeans/config/OpenWebBeansConfiguration.java b/webbeans-impl/src/main/java/org/apache/webbeans/config/OpenWebBeansConfiguration.java
index a042c06f0..1bb70bf03 100644
--- a/webbeans-impl/src/main/java/org/apache/webbeans/config/OpenWebBeansConfiguration.java
+++ b/webbeans-impl/src/main/java/org/apache/webbeans/config/OpenWebBeansConfiguration.java
@@ -19,8 +19,6 @@
 package org.apache.webbeans.config;
 
 import java.io.IOException;
-import java.security.AccessController;
-import java.security.PrivilegedAction;
 import java.util.ArrayList;
 import java.util.Arrays;
 import java.util.Collections;
@@ -342,15 +340,7 @@ public class OpenWebBeansConfiguration
 
     private void overrideWithGlobalSettings(Properties configProperties)
     {
-        Properties systemProperties;
-        if(System.getSecurityManager() != null)
-        {
-            systemProperties = doPrivilegedGetSystemProperties();
-        }
-        else
-        {
-            systemProperties = System.getProperties();
-        }
+        Properties systemProperties = System.getProperties();
 
         Map<String, String> systemEnvironment = System.getenv();
 
@@ -371,22 +361,6 @@ public class OpenWebBeansConfiguration
         }
     }
 
-    private Properties doPrivilegedGetSystemProperties()
-    {
-        return AccessController.doPrivileged(
-            new PrivilegedAction<>()
-            {
-                @Override
-                public Properties run()
-                {
-                    return System.getProperties();
-                }
-
-            }
-        );
-    }
-
-
     /**
      * Gets property.
      * @param key