Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8236954

remove RMIConnectorServer.CREDENTIAL_TYPES

    Details

    • Type: CSR
    • Status: Closed
    • Priority: P3
    • Resolution: Approved
    • Fix Version/s: 15
    • Component/s: core-svc
    • Labels:
      None
    • Subcomponent:
    • Compatibility Kind:
      source, binary
    • Compatibility Risk:
      medium
    • Compatibility Risk Description:
      Source code with a reference to this field will no longer compile. Classes compiled to previous JDK releases may fail at run-time with NoSuchFieldError.
    • Interface Kind:
      Java API
    • Scope:
      SE

      Description

      Summary

      Remove terminally deprecated constant RMIConnectorServer.CREDENTIALS_TYPES.

      Problem

      RMIConnectorServer.CREDENTIALS_TYPES constant was superseded by RMIConnectorServer.CREDENTIALS_FILTER_PATTERN and marked as deprecated and in need of removal in JDK 10 by JDK-8191313.

      Solution

      Remove the constant in question.

      Specification

      --- a/src/java.management.rmi/share/classes/javax/management/remote/rmi/RMIConnectorServer.java Fri Jan 10 15:38:25 2020 +0100
      +++ b/src/java.management.rmi/share/classes/javax/management/remote/rmi/RMIConnectorServer.java Fri Jan 10 17:13:31 2020 -0800    
      @@ -102,26 +102,6 @@
           "jmx.remote.rmi.server.socket.factory";
      
           /**
      -     * Name of the attribute that specifies a list of class names acceptable
      -     * as parameters to the {@link RMIServer#newClient(java.lang.Object) RMIServer.newClient()}
      -     * remote method call.
      -     * <p>
      -     * This list of classes should correspond to the transitive closure of the
      -     * credentials class (or classes) used by the installed {@linkplain JMXAuthenticator}
      -     * associated with the {@linkplain RMIServer} implementation.
      -     * <p>
      -     * If the attribute is not set, or is null, then any class is
      -     * deemed acceptable.
      -     *
      -     * @deprecated Use {@link #CREDENTIALS_FILTER_PATTERN} with a
      -     * {@linkplain java.io.ObjectInputFilter.Config#createFilter
      -     * filter pattern} string instead.
      -     */
      -    @Deprecated(since="10", forRemoval=true)
      -    public static final String CREDENTIAL_TYPES =
      -            "jmx.remote.rmi.server.credential.types"; 
      -
      -    /**
           * Name of the attribute that specifies an
           * {@link ObjectInputFilter} pattern string to filter classes acceptable
           * for {@link RMIServer#newClient(java.lang.Object) RMIServer.newClient()}

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dtitov Daniil Titov
                Reporter:
                smarks Stuart Marks
                Reviewed By:
                Alan Bateman, Daniel Fuchs
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: