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

    • Icon: Sub-task Sub-task
    • Resolution: Delivered
    • Icon: P4 P4
    • 17
    • 14
    • core-libs
    • None

      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.

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

              Created:
              Updated:
              Resolved: