RFR: 8377796: java.net.http.HttpClient.send() and sendAsync() never complete when BodyHandler.apply() returns null [v2]

Daniel Fuchs dfuchs at openjdk.org
Thu Feb 12 17:51:31 UTC 2026


On Thu, 12 Feb 2026 16:08:27 GMT, Jaikiran Pai <jpai at openjdk.org> wrote:

>> test/jdk/java/net/httpclient/NullReturningBodyHandlerTest.java line 249:
>> 
>>> 247:     }
>>> 248: 
>>> 249:     private static final class Handler implements HttpTestHandler {
>> 
>> You can consider using `EchoHandler` instead.
>
> Hello Volkan, I've updated the test to use `HttpTestEchoHandler`. None of the other `EchoHandler`(s) seemed appropriate for this test.

Thanks. I am working on a change that will remove all these various and superfluous variants of stand-alone echo handler classes.
The goal is that hopefully `HttpTestEchoHandler` is the only one that will remain.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/29691#discussion_r2800250629


More information about the net-dev mailing list