RFR 8042581: Intermittent failure in java/net/DatagramSocket/InheritHandle.java

Chris Hegarty chris.hegarty at oracle.com
Mon Dec 29 15:46:43 UTC 2014

Looks ok Felix.

You could put the construction of the new DatagramSocket in a try-with-resources, so it will be closed always, even if the test fails.


> On 29 Dec 2014, at 10:04, FELIX YANG <felix.yang at oracle.com> wrote:
> Hi all,
>     please review the fix for 8042581. This failure was only observed on Windows, so it is most possibly because the socket.close() on Windows is processed asynchronously within the Windows API layer (TCP machine) . Add 5 times of tries to the test if BindException is encountered on Windows.
> Webrev:
> http://cr.openjdk.java.net/~xiaofeya/8042581/webrev.00/
> Bug:
> https://bugs.openjdk.java.net/browse/JDK-8042581
> Thanks!
> -Felix
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/net-dev/attachments/20141229/60a3cec2/attachment.html>

More information about the net-dev mailing list