jdk/test/java/nio/channels/DatagramChannel/SendToUnresolved.java
Print this page
rev 5694 : 8003402: (dc) test/java/nio/channels/DatagramChannel/SendToUnresovled.java failing after 7u11 cleanup issues
Reviewed-by: chegar
*** 40,50 ****
InetSocketAddress sa = new InetSocketAddress (host, 37);
InetAddress inetaddr = sa.getAddress();
try {
dc.send(bb, sa);
throw new RuntimeException("Expected exception not thrown");
! } catch (IOException e) {
// Correct result
}
dc.close();
}
}
--- 40,50 ----
InetSocketAddress sa = new InetSocketAddress (host, 37);
InetAddress inetaddr = sa.getAddress();
try {
dc.send(bb, sa);
throw new RuntimeException("Expected exception not thrown");
! } catch (IOException | UnresolvedAddressException e) {
// Correct result
}
dc.close();
}
}