RFR: 8264975: java/net/DatagramSocket/DatagramSocketMulticasting.java fails infrequently [v2]

Alan Bateman alanb at openjdk.java.net
Wed Jun 2 17:56:42 UTC 2021


On Wed, 2 Jun 2021 17:52:34 GMT, Daniel Fuchs <dfuchs at openjdk.org> wrote:

>> Please find below a fix that will make `java/net/DatagramSocket/DatagramSocketMulticasting.java` more resilient to the rare case where addresses bound to a network interfaces are updated while the test is running.
>> 
>> Instead of using `NetworkInterface::equals` to compare network interfaces, the test now use `NetworkConfiguration::isSameInterface` which only looks at the network interface name and index and ignore the addresses which are bound to it.
>
> Daniel Fuchs has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Add a comment for the non-obvious case where ni1 == null || ni2 == null

Marked as reviewed by alanb (Reviewer).

-------------

PR: https://git.openjdk.java.net/jdk/pull/4313


More information about the net-dev mailing list