[jdk17u-dev] RFR: 8306040: HttpResponseInputStream.available() returns 1 on empty stream

Aleksey Shipilev shade at openjdk.org
Tue Apr 2 09:18:10 UTC 2024


On Fri, 1 Mar 2024 18:30:10 GMT, Sonia Zaldana Calles <szaldana at openjdk.org> wrote:

> Hi all, 
> 
> This pull request contains a backport of commit [acaab6fd74f507bb6b18167505d88e505bdf24bd](https://github.com/openjdk/jdk/commit/acaab6fd74f507bb6b18167505d88e505bdf24bd) from the [openjdk/jdk](https://github.com/openjdk/jdk) repository. 
> 
> Testing: using the reproducer linked in the issue, I was able to verify the patch. 
> I also ran the additional test case included in the original commit and all tests in ```test/jdk/java/net/httpclient/```. 
> 
> Note that patch is not clean because http tests and related classes have since been moved into a package of their own (namely ```/test/jdk/java/net/httpclient/lib```), which doesn’t exist in jdk 17. 
> 
> Only change introduced in my patch from the original commit: 
> 
> @@ -25,7 +25,7 @@
>   * @test
>   * @bug 8306040
>   * @summary HttpResponseInputStream.available() returns 1 on empty stream
> - * @library /test/lib /test/jdk/java/net/httpclient/lib
> + * @library /test/lib
>   * @run junit/othervm HttpInputStreamAvailableTest
>   *
>   */

RISC-V GHA failure is unrelated.

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

PR Comment: https://git.openjdk.org/jdk17u-dev/pull/2263#issuecomment-2031477587


More information about the jdk-updates-dev mailing list