Hi
    please oblige and review the following change

http://cr.openjdk.java.net/~msheppar/8039595/webrev/

which addresses the failures raised in

https://bugs.openjdk.java.net/browse/JDK-8039595

it should also address the CheckInetAddress test failures

https://bugs.openjdk.java.net/browse/JDK-6924602 - TEST_BUG: CheckInetAddress.java sometimes fails because it uses wrong address https://bugs.openjdk.java.net/browse/JDK-8028680 - closed/java/net/DatagramPacket/CheckInetAddress.java fails in azure

investigation of the issue saw the problem occur on multi-homed network configurations. In some circumstances there was no connectivity between the address chosen for the client datagram socket, and
the address used for the server datagram socket.
In macos case the test was selecting a temporary address that was deprecated, therefore not usable
as an initiating socket address.

The purpose of the test is to determine that a server DatagramPacket can be re-used in a receive call and obtain the relevant sender address from the datagram. The server socket is bound to a wild card address. As such, the test now uses InetAddress.getLocalHost() in both the send datagram packet address and for the client's DatagramSocket to ensure connectivity with the server DatagramSocket.

regards
Mark

Reply via email to