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

Deprecation of RMI Activation

    XMLWordPrintable

    Details

    • Type: CSR
    • Status: Closed
    • Priority: P4
    • Resolution: Approved
    • Fix Version/s: 15
    • Component/s: core-libs
    • Labels:
      None
    • Subcomponent:
    • Compatibility Kind:
      source, binary
    • Compatibility Risk:
      low
    • Compatibility Risk Description:
      Adding deprecation annotations will increase the number of warnings in some builds, which may give rise to errors. The additional warning output from rmid may appear unexpectedly in server logs. However, these issues are easily worked around.
    • Interface Kind:
      Java API, add/remove command in $JDK/bin
    • Scope:
      SE

      Description

      Summary

      Terminally deprecate the RMI Activation mechanism.

      Problem

      The RMI Activation mechanism is an obsolete part of RMI that has been optional since Java 8. It is effectively obsolete; it is disused; and it imposes a maintenance burden on the JDK. See JEP 385 (JDK-8244917) for additional information.

      Solution

      Terminally deprecate the RMI Activation mechanism, including the java.rmi.activation package, including the public, top-level classes and interfaces it contains. Also deprecate the rmid tool.

      Specification

      Zip files of the webrev and specdiff of corresponding changes to the specification are attached. The specdiff is rather difficult to read, as it is cluttered by the boilerplate deprecation text added by javadoc. A brief summary of the specification changes is as follows:

      • add a deprecation notice to the java.rmi.activation package specification
      • add a deprecation notice to the java.rmi module specification
      • add the annotation @Deprecated(forRemoval=true, since="15") to each public, top-level class or interface in the java.rmi.activation package

        Attachments

        1. rmispecs.webrev.0.zip
          357 kB
        2. specdiff.2.zip
          608 kB
        3. webrev.2.zip
          1.05 MB

          Issue Links

            Activity

              People

              Assignee:
              smarks Stuart Marks
              Reporter:
              smarks Stuart Marks
              Reviewed By:
              Lance Andersen, Roger Riggs
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: