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.
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.
- blocks
-
JDK-8280091 Bypass execution of tests with -Djava.net.preferIPv4Stack=true property setting in IPv6 only environment
-
- Open
-