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

Remove the socket impl factory mechanism

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P3
    • Resolution: Unresolved
    • Affects Version/s: 14
    • Fix Version/s: tbd
    • Component/s: core-libs
    • Labels:
      None

      Description

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

       * Methods:
        1) static void ServerSocket.setSocketFactory​(SocketImplFactory fac)
        2) static void Socket.setSocketImplFactory​(SocketImplFactory fac)
        3) static void DatagramSocket.setDatagramSocketImplFactory​(DatagramSocketImplFactory fac)

       * Types
        a) java.net SocketImplFactory
        b) java.net DatagramSocketImplFactory

      The java.net SocketImplFactory and DatagramSocketImplFactory types can
      be deprecated too, since their only use relates to the above factory
      setter methods.

      The CSR for JDK-8220494 contains some verbiage about the potential
      issues that setting factories can have, and alludes to their possible
      future removal.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dfuchs Daniel Fuchs
                Reporter:
                chegar Chris Hegarty
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: