Skip to content

[removal] AccessController in java.security has been deprecated and marked for removal #1590

Closed
@HenryL27

Description

Idk if it's just me, but I think this is ugly every time I compile the project. What would it take to make these go away?

/Users/hmlin/Aryn/mlc-hml/ml-commons/ml-algorithms/src/main/java/org/opensearch/ml/engine/ModelHelper.java:64: warning: [removal] AccessController in java.security has been deprecated and marked for removal
            AccessController.doPrivileged((PrivilegedExceptionAction<Void>) () -> {
            ^
/Users/hmlin/Aryn/mlc-hml/ml-commons/ml-algorithms/src/main/java/org/opensearch/ml/engine/ModelHelper.java:165: warning: [removal] AccessController in java.security has been deprecated and marked for removal
            return AccessController.doPrivileged((PrivilegedExceptionAction<List>) () -> {
                   ^
/Users/hmlin/Aryn/mlc-hml/ml-commons/ml-algorithms/src/main/java/org/opensearch/ml/engine/ModelHelper.java:196: warning: [removal] AccessController in java.security has been deprecated and marked for removal
            AccessController.doPrivileged((PrivilegedExceptionAction<Void>) () -> {
            ^
/Users/hmlin/Aryn/mlc-hml/ml-commons/ml-algorithms/src/main/java/org/opensearch/ml/engine/algorithms/DLModelExecute.java:135: warning: [removal] AccessController in java.security has been deprecated and marked for removal
            AccessController.doPrivileged((PrivilegedExceptionAction<Void>) () -> {
            ^
/Users/hmlin/Aryn/mlc-hml/ml-commons/ml-algorithms/src/main/java/org/opensearch/ml/engine/algorithms/DLModel.java:80: warning: [removal] AccessController in java.security has been deprecated and marked for removal
            return AccessController.doPrivileged((PrivilegedExceptionAction<ModelTensorOutput>) () -> {
                   ^
/Users/hmlin/Aryn/mlc-hml/ml-commons/ml-algorithms/src/main/java/org/opensearch/ml/engine/algorithms/DLModel.java:242: warning: [removal] AccessController in java.security has been deprecated and marked for removal
            AccessController.doPrivileged((PrivilegedExceptionAction<Void>) () -> {
            ^
/Users/hmlin/Aryn/mlc-hml/ml-commons/ml-algorithms/src/main/java/org/opensearch/ml/engine/algorithms/rcf/RCFModelSerDeSer.java:26: warning: [removal] AccessController in java.security has been deprecated and marked for removal
            AccessController.doPrivileged((PrivilegedAction<Schema<RandomCutForestState>>) () ->
            ^
/Users/hmlin/Aryn/mlc-hml/ml-commons/ml-algorithms/src/main/java/org/opensearch/ml/engine/algorithms/rcf/RCFModelSerDeSer.java:29: warning: [removal] AccessController in java.security has been deprecated and marked for removal
            AccessController.doPrivileged((PrivilegedAction<Schema<ThresholdedRandomCutForestState>>) () ->
            ^
/Users/hmlin/Aryn/mlc-hml/ml-commons/ml-algorithms/src/main/java/org/opensearch/ml/engine/algorithms/rcf/RCFModelSerDeSer.java:58: warning: [removal] AccessController in java.security has been deprecated and marked for removal
        byte[] bytes = AccessController.doPrivileged((PrivilegedAction<byte[]>) () -> ProtostuffIOUtil.toByteArray(model, schema, buffer));
                       ^
/Users/hmlin/Aryn/mlc-hml/ml-commons/ml-algorithms/src/main/java/org/opensearch/ml/engine/algorithms/rcf/RCFModelSerDeSer.java:64: warning: [removal] AccessController in java.security has been deprecated and marked for removal
        AccessController.doPrivileged((PrivilegedAction<Void>) () -> {
        ^
/Users/hmlin/Aryn/mlc-hml/ml-commons/ml-algorithms/src/main/java/org/opensearch/ml/engine/algorithms/remote/ConnectorUtils.java:121: warning: [removal] AccessController in java.security has been deprecated and marked for removal
            AccessController.doPrivileged((PrivilegedExceptionAction<Void>) () -> {
            ^
/Users/hmlin/Aryn/mlc-hml/ml-commons/ml-algorithms/src/main/java/org/opensearch/ml/engine/algorithms/remote/HttpJsonConnectorExecutor.java:93: warning: [removal] AccessController in java.security has been deprecated and marked for removal
            AccessController.doPrivileged((PrivilegedExceptionAction<Void>) () -> {
            ^
/Users/hmlin/Aryn/mlc-hml/ml-commons/ml-algorithms/src/main/java/org/opensearch/ml/engine/algorithms/remote/AwsConnectorExecutor.java:82: warning: [removal] AccessController in java.security has been deprecated and marked for removal
            HttpExecuteResponse response = AccessController.doPrivileged((PrivilegedExceptionAction<HttpExecuteResponse>) () -> {
                                           ^
/Users/hmlin/Aryn/mlc-hml/ml-commons/ml-algorithms/src/main/java/org/opensearch/ml/engine/MLEngineClassLoader.java:42: warning: [removal] AccessController in java.security has been deprecated and marked for removal
            AccessController.doPrivileged((PrivilegedExceptionAction<Void>) () -> {
            ^

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions