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

[TESTBUG] java/net/SocketOption/OptionTest should only use multicast capable interfaces for multicast tests

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 9
    • core-libs
    • None
    • b101

      The java/net/SocketOption/OptionTest test chooses the first network interface returned by NetworkInterface.getNetworkInterfaces() for doing some tests on multicast sockets.

      But it may be that the chosen interface does not even support multicasting. So better iterate over all interfaces and only choose one if NetworkInterface.supportsMulticast() returns true.

            simonis Volker Simonis
            simonis Volker Simonis
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: