RFR: 8272758: Improve HttpServer to avoid partial file name matches while mapping request path to context path [v2]

Volkan Yazici vyazici at openjdk.org
Wed Jan 21 12:47:43 UTC 2026


On Fri, 16 Jan 2026 08:13:22 GMT, Volkan Yazici <vyazici at openjdk.org> wrote:

>> Volkan Yazici has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Add property to switch between prefix matching schemes
>
> src/jdk.httpserver/share/classes/com/sun/net/httpserver/HttpServer.java line 1:
> 
>> 1: /*
> 
> Recall that the issue was first reported in [JDK-8225479], and there, the decision was to introduce the `@apiNote` workaround you see here. I took the approach of adding an `@implNote` stating where we deviate from the `@apiNote`.
> 
> I am not really sure if the _"this would match requests"_ statement (note the _"would"_!) implies a conflict between the old `@apiNote` and the newly introduced `@implNote`. If so, this can bite use in the CSR review.
> 
> In short, I appreciate your feedback on how to massage the API docs.
> 
> [JDK-8225479]: https://bugs.openjdk.org/browse/JDK-8225479

Addressed in e80aabcb7ab.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/29264#discussion_r2712413825


More information about the net-dev mailing list