Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8224477 java.net socket types new-style socket option methods - spec and impl mismatch
  3. JDK-8226643

Release Note: Change to Default Implementation of SocketImpl Methods supportedOptions, getOption, and setOption

XMLWordPrintable

    • Verified

      The default implementation of the `supportedOptions()`, `getOption(SocketOption<T>)` and `setOption(SocketOption<T>, T)` methods, defined by `java.net.SocketImpl` and `java.net.DatagramSocketImpl`, have changed in this release. The default implementation of the `supportedOptions()` method has been changed to return an empty set. The default implementations of the `getOption(SocketOption<T>)` and `setOption(SocketOption<T>, T)` methods have been changed to throw `UnsupportedOperationException`.

      Developers extending `java.net.SocketImpl` or `java.net.DatagramSocketImpl` to create their own socket or datagram socket implementations need to override these methods to support the socket options that the custom socket implementation supports.

            alanb Alan Bateman
            alanb Alan Bateman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: