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

Sonia Zaldana Calles szaldana at openjdk.org
Tue Apr 2 09:18:11 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
>   *
>   */

This pull request has now been integrated.

Changeset: 08debe83
Author:    Sonia Zaldana Calles <szaldana at openjdk.org>
Committer: Aleksey Shipilev <shade at openjdk.org>
URL:       https://git.openjdk.org/jdk17u-dev/commit/08debe83ae06b613dbc4b160972d1d50bb319578
Stats:     163 lines in 2 files changed: 161 ins; 0 del; 2 mod

8306040: HttpResponseInputStream.available() returns 1 on empty stream

Reviewed-by: stuefe
Backport-of: acaab6fd74f507bb6b18167505d88e505bdf24bd

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

PR: https://git.openjdk.org/jdk17u-dev/pull/2263


More information about the jdk-updates-dev mailing list