[ 
https://issues.apache.org/jira/browse/ZOOKEEPER-4974?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andor Molnar updated ZOOKEEPER-4974:
------------------------------------
    Summary: Remove enforced JDK 17 compilation warnings  (was: Remove usage of 
SecurityManager)

> Remove enforced JDK 17 compilation warnings
> -------------------------------------------
>
>                 Key: ZOOKEEPER-4974
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-4974
>             Project: ZooKeeper
>          Issue Type: Bug
>    Affects Versions: 3.10.0
>            Reporter: Richárd Antal
>            Assignee: Andor Molnar
>            Priority: Major
>
> 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