Revisit IPSupport::hasIPv4 to return false in case where no network interfaces supporting IPv4 is found.

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • Affects Version/s: 17
    • Component/s: core-libs
    • None

      The test java/net/NetworkInterface/IPv4Only.java has been observed failing on some IPv6 environment with the following exception:

      java.net.SocketException: No network interfaces configured
      at java.base/java.net.NetworkInterface.getNetworkInterfaces(NetworkInterface.java:357)
      at IPv4Only.main(IPv4Only.java:40)

      The implementation of IPSupport.hasIPv4() should probably be revisited. Typically it might be revisited to return false in cases where no network interface supporting IPv4 is found.

            Assignee:
            Daniel Jelinski
            Reporter:
            Daniel Fuchs
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: