On Fri, 13 Nov 2026 10:13:49 GMT, Volkan Yazici <[email protected]> wrote:
>> Fix response body overread in `HttpURLConnection`. >> >> --------- >> - [X] I confirm that I make this contribution in accordance with the >> [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai). > > Volkan Yazici has updated the pull request incrementally with one additional > commit since the last revision: > > Minimize the fix and accept negative `expected` The changes look OK. This also modifies the behaviour of `available()` which will be capped to `expected - count` when `expected` is positive, so maybe it would be worth testing `available()` too. test/jdk/java/net/HttpURLConnection/ResponseBodyOverreadTest.java line 1: > 1: /* Would it be hard to add a test for available() and skip() whose logic this fix also modifies? ------------- PR Comment: https://git.openjdk.org/jdk/pull/33846#issuecomment-7009197425 PR Review Comment: https://git.openjdk.org/jdk/pull/33846#discussion_r4628715262
