Integrated: 8377796: java.net.http.HttpClient.send() and sendAsync() never complete when BodyHandler.apply() returns null
Jaikiran Pai
jpai at openjdk.org
Tue Feb 17 11:16:59 UTC 2026
On Thu, 12 Feb 2026 13:42:33 GMT, Jaikiran Pai <jpai at openjdk.org> wrote:
> Can I please get a review of this change which proposes to address the issue noted in https://bugs.openjdk.org/browse/JDK-8377796?
>
> The change here asserts that if `BodyHandler.apply()` returns `null`, then the HTTP request completes exceptionally. A new test has been introduced to reproduce the issue and verify the fix.
This pull request has now been integrated.
Changeset: 70195910
Author: Jaikiran Pai <jpai at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/7019591013d68547a1c46065ebacc6ec1072e2ec
Stats: 250 lines in 5 files changed: 244 ins; 1 del; 5 mod
8377796: java.net.http.HttpClient.send() and sendAsync() never complete when BodyHandler.apply() returns null
Reviewed-by: dfuchs, vyazici
-------------
PR: https://git.openjdk.org/jdk/pull/29691
More information about the net-dev
mailing list