Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
8224775: test/jdk/com/sun/jdi/JdwpListenTest.java failed to attach
Reviewed-by: sspitsyn, dfuchs
  • Loading branch information
Alex Menkov committed Mar 4, 2021
1 parent 2848938 commit 104a26283a2da8d995bc0b7b5abb8bd3d3b9f2a9
Showing with 14 additions and 11 deletions.
  1. +14 −11 test/lib/jdk/test/lib/Utils.java
@@ -360,17 +360,20 @@ public static List<InetAddress> getAddressesWithSymbolicAndNumericScopes() {
// which are incompatible with native Windows routines.
// So on Windows test only addresses with numeric scope.
// On other platforms test both symbolic and numeric scopes.
conf.ip6Addresses().forEach(addr6 -> {
try {
result.add(Inet6Address.getByAddress(null, addr6.getAddress(), addr6.getScopeId()));
} catch (UnknownHostException e) {
// cannot happen!
throw new RuntimeException("Unexpected", e);
}
if (!Platform.isWindows()) {
result.add(addr6);
}
});
conf.ip6Addresses()
// test only IPv6 loopback and link-local addresses (JDK-8224775)
.filter(addr -> addr.isLinkLocalAddress() || addr.isLoopbackAddress())
.forEach(addr6 -> {
try {
result.add(Inet6Address.getByAddress(null, addr6.getAddress(), addr6.getScopeId()));
} catch (UnknownHostException e) {
// cannot happen!
throw new RuntimeException("Unexpected", e);
}
if (!Platform.isWindows()) {
result.add(addr6);
}
});
} catch (IOException e) {
// cannot happen!
throw new RuntimeException("Unexpected", e);

0 comments on commit 104a262

Please sign in to comment.