Richárd Antal created ZOOKEEPER-4974:
----------------------------------------

             Summary: Remove usage of SecurityManager
                 Key: ZOOKEEPER-4974
                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-4974
             Project: ZooKeeper
          Issue Type: Bug
            Reporter: Richárd Antal


To ensure full compatibility with JDK17 we should remove any usages of 
SecurityManager
Because it is deprecated and causing the build to fail with extra maven 
parameters
-Dmaven.compiler.source=17 -Dmaven.compiler.target=17 
-Dmaven.compiler.release=17
the build fails because of these warning
{code:java}
[WARNING] COMPILATION WARNING :
[INFO] -------------------------------------------------------------
[WARNING] 
/Users/andor/git/cdh/zookeeper/zookeeper-server/src/main/java/org/apache/zookeeper/server/WorkerService.java:[180,13]
 java.lang.SecurityManager in java.lang has been deprecated and marked for 
removal
[WARNING] 
/Users/andor/git/cdh/zookeeper/zookeeper-server/src/main/java/org/apache/zookeeper/server/WorkerService.java:[180,39]
 getSecurityManager() in java.lang.System has been deprecated and marked for 
removal{code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to