diff --git a/jdk/test/ProblemList.txt b/jdk/test/ProblemList.txt index 702b9c68486..2e57a38b131 100644 --- a/jdk/test/ProblemList.txt +++ b/jdk/test/ProblemList.txt @@ -719,12 +719,6 @@ com/sun/nio/sctp/SctpChannel/Receive.java generic-all # Triggers a hotspot crash on Fedora 9 32bit -server and Windows X64 samevm sun/nio/cs/TestUTF8.java generic-all -# Fails on OpenSolaris, IllegalArgumentException: Source address is a wildcard -java/nio/channels/DatagramChannel/BasicMulticastTests.java generic-all - -# Fails on OpenSolaris, RuntimeException: Expected message not recieved -java/nio/channels/DatagramChannel/MulticastSendReceiveTests.java generic-all - # Solaris sparc, socket timeout java/nio/channels/spi/SelectorProvider/inheritedChannel/run_tests.sh generic-all diff --git a/jdk/test/java/nio/channels/DatagramChannel/NetworkConfiguration.java b/jdk/test/java/nio/channels/DatagramChannel/NetworkConfiguration.java index f1d7d5debc6..2d7b6241feb 100644 --- a/jdk/test/java/nio/channels/DatagramChannel/NetworkConfiguration.java +++ b/jdk/test/java/nio/channels/DatagramChannel/NetworkConfiguration.java @@ -73,22 +73,22 @@ class NetworkConfiguration { List addrs = Collections.list(nif.getInetAddresses()); for (InetAddress addr: addrs) { - if (addr instanceof Inet4Address) { - List list = ip4Interfaces.get(nif); - if (list == null) { - list = new LinkedList(); + if (!addr.isAnyLocalAddress()) { + if (addr instanceof Inet4Address) { + List list = ip4Interfaces.get(nif); + if (list == null) { + list = new LinkedList(); + } + list.add(addr); + ip4Interfaces.put(nif, list); + } else if (addr instanceof Inet6Address) { + List list = ip6Interfaces.get(nif); + if (list == null) { + list = new LinkedList(); + } + list.add(addr); + ip6Interfaces.put(nif, list); } - list.add(addr); - ip4Interfaces.put(nif, list); - } - if (addr instanceof Inet6Address) { - List list = ip6Interfaces.get(nif); - if (list == null) { - list = new LinkedList(); - } - list.add(addr); - ip6Interfaces.put(nif, list); - } } }