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

Jaikiran Pai jpai at openjdk.org
Mon Nov 10 13:02:37 UTC 2025


On Mon, 10 Nov 2025 12:25:44 GMT, Michael McMahon <michaelm at openjdk.org> wrote:

>> I'd like to return to this issue with a new PR that addresses the usability issue minimally. Namely to define numeric constants
>> for the counter-intuitive responseLength values in `HttpExchange.sendResponseHeaders`. The apidoc then refers to the constant names rather than the numeric values.
>> 
>> I've updated the implementation and some tests (though not all yet) to use the constant names. I'm open to suggestions on the names themselves. Once that is agreed, I'll update the remaining tests and any other call sites in the implementation.
>> 
>> Thanks,
>> Michael
>
> Michael McMahon has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Copyright header updates

The copyright year updates look good to me and so does the rest of this PR. I just have one comment here https://github.com/openjdk/jdk/pull/28132#discussion_r2510082331

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

Marked as reviewed by jpai (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/28132#pullrequestreview-3443142942


More information about the net-dev mailing list