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

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: P4
    • Resolution: Delivered
    • Affects Version/s: 13
    • Fix Version/s: 13
    • Component/s: core-libs
    • Subcomponent:
    • Verification:
      Verified

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: