RFR: 8331195: Improve com.sun.net.httpserver.HttpExchange usability [v6]

Michael McMahon michaelm at openjdk.org
Mon Nov 10 13:40:11 UTC 2025


On Mon, 10 Nov 2025 11:20:55 GMT, Jaikiran Pai <jpai at openjdk.org> wrote:

>> test/jdk/com/sun/net/httpserver/ServerStopTerminationTest.java line 195:
>> 
>>> 193:                 0,
>>> 194:                 "/", exchange -> {
>>> 195:                     exchange.sendResponseHeaders(200, RSPBODY_EMPTY);
>> 
>> I'm guessing that this is intentionally using `RSPBODY_EMPTY` and previously it was a bug to send `0`?
>
> Never mind, I just heard the answer to this offline. This looks OK to me.

Hi Jaikiran. I think `0` was probably not intended. I decided to "fix" it in this place, but leave it in the others

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

PR Review Comment: https://git.openjdk.org/jdk/pull/28132#discussion_r2510602379


More information about the net-dev mailing list