8248703 Clarify the behavior of java.net.NetworkInterface::equals

Daniel Fuchs daniel.fuchs at oracle.com
Thu Jul 2 13:12:54 UTC 2020


Hi,

Please find below a fix for

8248703 Clarify the behavior of java.net.NetworkInterface::equals
https://bugs.openjdk.java.net/browse/JDK-8248703

CSR:    https://bugs.openjdk.java.net/browse/JDK-8248704
webrev: http://cr.openjdk.java.net/~dfuchs/webrev_8248703/webrev.00/

NetworkInterface::equals is specified to compare the interface names and 
raw IP addresses. However, on some systems, some interface addresses can 
be dynamically updated while an application is running. Two 
NetworkInterface objects may therefore compare unequal even though they 
represent the same logical underlying interface.

both fix and CSR need reviewers.


best regards,

-- daniel


More information about the net-dev mailing list