On Thu, 15 Oct 2026 12:38:07 GMT, Daniel Jeliński <[email protected]> wrote:
>> test/jdk/java/nio/channels/DatagramChannel/BindLoopback.java line 51:
>>
>>> 49: }
>>> 50: try (DatagramChannel channel =
>>> DatagramChannel.open(StandardProtocolFamily.INET)) {
>>> 51: channel.bind(new InetSocketAddress("127.0.0.255", 0));
>>
>> The test binds to a very specific loopback address. So I think we need to
>> find a better name for the test, or beef it up to test a number of different
>> loopback addresses (both IPv4 and IPv6)
>
> That's a good point. I'd rather not extend the test, especially since it's
> only running on Linux (it's failing on Mac, and I suppose it may fail on
> other platforms too). Would B8394580 be an acceptable name for this test, or
> are we no longer using this kind of names?
come to think of it, should I even be adding a test for this behavior? I mean,
the test showcases the changes that have been done, but if Linux maintainers
decided to reject 127.x.x.255 addresses one day and this test started failing,
that wouldn't qualify as a JDK bug.
Should I remove the tests and use the noreg-cleanup label instead?
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/33378#discussion_r4285031242