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

Reply via email to