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.

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

              Created:
              Updated:
              Resolved: