RFR: 8371091: Improve the exception message of NullPointerException thrown by the methods in the default implementation of HttpRequest.Builder [v2]
EunHyunsu
duke at openjdk.org
Tue Nov 4 11:37:15 UTC 2025
On Mon, 3 Nov 2025 16:13:17 GMT, Jaikiran Pai <jpai at openjdk.org> wrote:
> > would it make sense to add a small new test method,
> > say testNullMessages(), in the same class to verify the exception messages specifically?
>
> I think that should be OK. It doesn't have to be too complicated/generic either, as long as it tests these specific method calls.
Thanks for confirming! I’ll add a straightforward testNullMessages() method in the same class to verify those specific calls.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/28103#issuecomment-3485522603
More information about the net-dev
mailing list