JDK-8248703 : Clarify the behavior of java.net.NetworkInterface::equals
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.net
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2020-07-02
  • Updated: 2020-07-24
  • Resolved: 2020-07-03
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 15 JDK 16
15 b31Fixed 16Fixed
Related Reports
Relates :  
Description
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.

The API documentation of  NetworkInterface::equals should be updated to warn about this possibility. 
Comments
URL: https://hg.openjdk.java.net/jdk/jdk15/rev/0f5177f6b4ba User: dfuchs Date: 2020-07-03 15:56:23 +0000
03-07-2020