RFR: 8367067: Improve exception handling in HttpRequest.BodyPublishers [v4]

Volkan Yazici vyazici at openjdk.org
Fri Sep 19 10:07:17 UTC 2025


On Mon, 8 Sep 2025 17:55:56 GMT, Volkan Yazici <vyazici at openjdk.org> wrote:

>> You might discover that it's not as simple, as the case where the throwable is known in advance folds within the case where getting the interator throws...
>> You'd still need to be able to create a failed subscription at line 73 below.
>> 
>> I am not opposed to exploring that route though - and see if it really simplifies the code.
>
> Thanks for the feedback. I’ll set this exploration aside until after the PR. If I get convincing results, I’ll knock on your door again.

Created [JDK-8368077] to address this.

[JDK-8368077]: https://bugs.openjdk.org/browse/JDK-8368077

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

PR Review Comment: https://git.openjdk.org/jdk/pull/26876#discussion_r2362172647


More information about the net-dev mailing list