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

MulticastSocket getOption(IP_MULTICAST_IF) returns interface when not set

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b26
    • Verification:
      Verified

      Description

      The IP_MULTICAST_IF socket option is specified to have an initial value of null to mean that the interface has not been set. When the interface is not set MulticastSocket's getOption(IP_MULTICAST_IF) returns a NetworkInterface that appears to be valid (index >= 0) but is useless.

      The setOption/getOption methods are @since 9 so the compatibility impact of fixing this is probably low.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              pconcannon Patrick Concannon (Inactive)
              Reporter:
              alanb Alan Bateman
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: