[RFR] 8194231: java/net/DatagramSocket/ReuseAddressTest.java failed with java.net.BindException: Address already in use: Cannot bind

Zeller, Arno arno.zeller at sap.com
Tue May 28 15:10:14 UTC 2019


Hi,

I took a look at JDK-8194231 and would like to propose the following fix for the issue.

The problem seems that the test uses fixed port 5050 for testing that is also used by newer Windows versions (Windows 10/Window Server 2016 and newer).
Therefore the test will always fail when run on a newer Windows machine. To avoid such problems in the future I changed the three sub tests that use a fixed port to use a generic port instead.

Bug:
8194231: java/net/DatagramSocket/ReuseAddressTest.java failed with java.net.BindException: Address already in use: Cannot bind
https://bugs.openjdk.java.net/browse/JDK-8194231

Webrev:
http://cr.openjdk.java.net/~azeller/webrevs/8194231/

Best regards,
Arno
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/net-dev/attachments/20190528/60de3733/attachment.html>


More information about the net-dev mailing list