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

Remove RMIConnectorServer.CREDENTIAL_TYPES

    XMLWordPrintable

Details

    • CSR
    • Resolution: Approved
    • P3
    • 15
    • core-svc
    • None
    • source, binary
    • medium
    • 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.
    • Java API
    • 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

              dtitov Daniil Titov (Inactive)
              smarks Stuart Marks
              Alan Bateman, Daniel Fuchs
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: