Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8235139 Deprecate the socket impl factory mechanism
  3. JDK-8235140

Investigate deprecation of the Socket/ServerSocket impl factory mechanism

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: P4
    • Resolution: Delivered
    • Affects Version/s: 14
    • Fix Version/s: 17
    • Component/s: core-libs
    • Labels:
      None

      Description

      This subtask proposes to deprecate, and eventually remove, the API points
      for statically configuring a system-wide factory for the Soket/SocketServer types in
      the java.net package. Specifically, the following:

       * Methods:
        1) static void ServerSocket.setSocketFactory​(SocketImplFactory fac)
        2) static void Socket.setSocketImplFactory​(SocketImplFactory fac)
        
      * Types
        a) java.net SocketImplFactory

      The java.net SocketImplFactory can be deprecated too, but we might not be able to remove it completely.

      The alternative to using ServerSocket.setSocketFactory and Socket.setSocketImplFactory is to subclass Socket/ServerSocket and call the constructor that takes a SocketImpl.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              pconcannon Patrick Concannon (Inactive)
              Reporter:
              chegar Chris Hegarty
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: