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

Peyang duke at openjdk.org
Tue Nov 4 11:33:45 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.

Thanks for your review.
I've run the test locally and confirmed it passes successfully.

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

PR Comment: https://git.openjdk.org/jdk/pull/28104#issuecomment-3485501240


More information about the net-dev mailing list