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

Chris Hegarty chris.hegarty at oracle.com
Tue May 28 15:20:40 UTC 2019


Arno,

> On 28 May 2019, at 16:10, Zeller, Arno <arno.zeller at sap.com> wrote:
> 
> 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/

I think this is good.

I would like to run it through our internal build and test infra, after which
I’ll post the results here.

Trivially, a space is needed after the coma in the copyright header. “2016, 2019, "

+/* Copyright (c) 2016,2019, Oracle and/or its affiliates. All rights reserved.

-Chris.


More information about the net-dev mailing list