Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8356154 Respecify java.net.Socket constructors that allow creating UDP sockets to throw IllegalArgumentException
  3. JDK-8365125

Release Note: java.net.Socket Constructors Can No Longer Be Used to Create a Datagram Socket

XMLWordPrintable

      The two deprecated `java.net.Socket` constructors that accept the `stream` parameter have been updated to throw an `IllegalArgumentException` if `stream` is `false`. These constructors can no longer be used to create datagram sockets. Instead use `java.net.DatagramSocket` for datagram sockets. These two constructors will be removed in a future release.

            jpai Jaikiran Pai
            jpai Jaikiran Pai
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: