RFR: 8371092: NullPointerException in AltServiceUsageTest.afterClass() test

Daniel Fuchs dfuchs at openjdk.org
Mon Nov 3 10:59:04 UTC 2025


On Sun, 2 Nov 2025 14:09:28 GMT, Peyang <duke at openjdk.org> wrote:

> - Add `safeClose(DatagramChannel)` to close udpNotResponding safely.
> - Null-check and exception handling unified with `safeStop()`.
> - Ensures test cleanup never fails due to uninitialized or problematic channel.

Please make sure to run the test locally before integrating. Networking tests are not run by github actions.

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

Marked as reviewed by dfuchs (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/28104#pullrequestreview-3410460082


More information about the net-dev mailing list