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

Degrade or @Deprecate(forRemoval=true) Socket constructors to create UDP sockets

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: In Progress
    • Priority: P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Understanding:
      Cause Known

      Description

      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.

        Attachments

          Activity

            People

            Assignee:
            michaelm Michael McMahon
            Reporter:
            alanb Alan Bateman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: