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

Deprecate for removal Socket constructors to create UDP sockets

XMLWordPrintable

    • b26

      java.net.Socket defines two constructors with a stream parameter that can be specified as "false" to create a datagram socket. These constructors were a mistake and have deprecated since at least Java SE 1.3.

      This issue tracks re-visiting these constructors. One option is to mark them as deprecated-for-removal with a view to removing them in a future release. Another alternative is to disallow the stream value be specified as false.

            jpai Jaikiran Pai
            alanb Alan Bateman
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: