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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 17
    • 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.

            djelinski Daniel Jelinski
            dfuchs Daniel Fuchs
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: