Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-4823

JEP 411: AccessControlException, AccessController in java.security has been deprecated and marked for removal

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.28.0
    • core
    • None

    Description

      Calcite uses java.security APIs that have been marked for removal.
      Let's minimize the usages of java.security for now.

      /Users/runner/work/calcite/calcite/core/src/main/java/org/apache/calcite/util/SaffronProperties.java:28: warning: [removal] AccessControlException in java.security has been deprecated and marked for removal
      import java.security.AccessControlException;
                          ^
      /Users/runner/work/calcite/calcite/core/src/main/java/org/apache/calcite/config/CalciteSystemProperty.java:27: warning: [removal] AccessControlException in java.security has been deprecated and marked for removal
      import java.security.AccessControlException;
                          ^
      error: warnings found and -Werror specified
      /Users/runner/work/calcite/calcite/core/src/main/java/org/apache/calcite/runtime/Resources.java:991: warning: [removal] AccessController in java.security has been deprecated and marked for removal
            return java.security.AccessController.doPrivileged(
                                ^
      /Users/runner/work/calcite/calcite/core/src/main/java/org/apache/calcite/util/SaffronProperties.java:137: warning: [removal] AccessControlException in java.security has been deprecated and marked for removal
            } catch (AccessControlException e) {
                     ^
      /Users/runner/work/calcite/calcite/core/src/main/java/org/apache/calcite/config/CalciteSystemProperty.java:439: warning: [removal] AccessControlException in java.security has been deprecated and marked for removal
          } catch (AccessControlException e) {
                   ^
      Note: Some input files use unchecked or unsafe operations.
      Note: Recompile with -Xlint:unchecked for details.
      1 error
      5 warnings
      :core:compileJava failure marker
      

      What do we do with that?

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              vladimirsitnikov Vladimir Sitnikov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: