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

RMI server-side multiplex protocol support should be removed

XMLWordPrintable

    • Icon: CSR CSR
    • Resolution: Approved
    • Icon: P3 P3
    • 10
    • core-libs
    • None
    • behavioral
    • minimal
    • The RMI multiplexing protocol has been disabled in JDK 9 and is not used.
    • System or security property
    • JDK

      Summary

      The RMI Multiplexing Protocol implementation is being removed. It is unused and has been disabled since JDK 9.

      Problem

      The RMI Multiplex protocol was introduced in JDK 1.0.2 but longer is used and the implementation is no longer needed. The unused code will be removed to simplify documentation, support, and testing. The multiplex protocol does not appear in the public API and there is no client side support for the multiplexing protocol.

      The RMI Specification "Java Remote Method Invocation: 10 - RMI Wire Protocol" includes the multiplex protocol but its support is not mandated. There are no compatibility tests in the JCK for multiplexing.

      Solution

      Replace the implementation so that it responds to a request for the MultiplexProtocol with the response ProtocolNack to indicate it is not supported.

      The system property sun.rmi.transport.tcp.enableMultiplexProtocol is no longer needed and will be ignored.

      Specification

      There are no changes to the RMI API or specification.

            rriggs Roger Riggs
            smarks Stuart Marks
            Stuart Marks
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: