RFR: 8275319 java.net.NetworkInterface throws java.lang.Error instead of SocketException [v3]
Daniel Jeliński
duke at openjdk.java.net
Tue Oct 19 07:56:53 UTC 2021
On Tue, 19 Oct 2021 06:42:43 GMT, Alan Bateman <alanb at openjdk.org> wrote:
>> Daniel Jeliński has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Fix crash on GetIpAddrTable error
>
> src/java.base/windows/native/libnet/NetworkInterface_winXP.c line 123:
>
>> 121: // not an error
>> 122: *adapters = NULL;
>> 123: return ERROR_SUCCESS;
>
> Mapping ERROR_NO_DATA to ERROR_SUCCESS is probably correct here. Could this explain bug reports that seem to be from configurations with no IP addresses plumbed?
I suppose it could. But in order to get ERROR_NO_DATA here one would need to disable loopback interface. I couldn't find how to do that.
-------------
PR: https://git.openjdk.java.net/jdk/pull/5956
More information about the net-dev
mailing list