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

Jaikiran Pai jpai at openjdk.org
Mon Nov 10 11:23:25 UTC 2025


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

>> Michael McMahon has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   updated remaining callsites for new constants
>
> 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.

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

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


More information about the net-dev mailing list