RFR: 8275640 (win) java.net.NetworkInterface issues with IPv6-only environments

Daniel Fuchs dfuchs at openjdk.java.net
Wed Oct 27 11:23:10 UTC 2021


On Sat, 23 Oct 2021 10:26:34 GMT, Daniel Jeliński <duke at openjdk.java.net> wrote:

> Clean up of various issues related to error handling and memory management

Hi Daniel - it looks like your changeset is reverting all the changes that were made by [JDK-8046500](https://bugs.openjdk.java.net/browse/JDK-8046500), to fix an issue where no interfaces were returned on machines that had only IPv6 interfaces (and no IPv4). See https://mail.openjdk.java.net/pipermail/net-dev/2018-November/011931.html ; 

Were you able to test that `NetworkInterface.getNetworkInterfaces()` will not fail on a machine where IPv4 has been disabled with `netsh interface ipv4 uninstall` ?

-------------

PR: https://git.openjdk.java.net/jdk/pull/6090


More information about the net-dev mailing list