Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8248703

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

XMLWordPrintable

    • b31

        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.

              dfuchs Daniel Fuchs
              dfuchs Daniel Fuchs
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: