JDK 8 RFR 8010371: getaddrinfo can fail with EAI_SYSTEM/EAGAIN, causes UnknownHostException to be thrown

David Holmes david.holmes at oracle.com
Fri Oct 4 05:47:19 UTC 2013


Brian,

On 3/10/2013 5:40 AM, Brian Burkhalter wrote:
> I agree that is an ugly style but it guarantees that mistakes such as
>
> 	if (error = EAI_AGAIN) {}
>
> are caught at compilation time.

True but as I understand it this is not the preferred/common style in 
the JDK code.

David



More information about the core-libs-dev mailing list