On Fri, 20 Mar 2026 12:03:06 GMT, Jaikiran Pai <[email protected]> wrote:

> Can I please get a review of this test-only change which proposes to update 
> the `test/jdk/java/net/DatagramPacket/ReuseBuf.java` test to use a loopback 
> address?
> 
> As noted in https://bugs.openjdk.org/browse/JDK-8380534, this test uses 
> non-loopback address to send and receive datagram packets, and has been 
> failing on some of the macos hosts that we run this test on. Given what the 
> test was introduced for in https://bugs.openjdk.org/browse/JDK-4424096, it 
> doesn't necessarily require the use of a non-loopback address.
> 
> The commit in this PR updates the test to use loopback address. Few other 
> clean ups have been done too, to properly close the resources.
> 
> The updated test now passes on all platforms (I launched multiple test runs).

This pull request has now been integrated.

Changeset: 396cc0ab
Author:    Jaikiran Pai <[email protected]>
URL:       
https://git.openjdk.org/jdk/commit/396cc0ab6a8a6d2e3a0d9b6c3cedafef6a427094
Stats:     120 lines in 1 file changed: 70 ins; 9 del; 41 mod

8380534: Use loopback address in java/net/DatagramPacket/ReuseBuf.java test

Reviewed-by: dfuchs

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

PR: https://git.openjdk.org/jdk/pull/30335

Reply via email to