[jdk17u-dev] RFR: 8306040: HttpResponseInputStream.available() returns 1 on empty stream
Sonia Zaldana Calles
szaldana at openjdk.org
Wed Mar 6 14:27:13 UTC 2024
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
*
*/
-------------
Commit messages:
- Backport acaab6fd74f507bb6b18167505d88e505bdf24bd
Changes: https://git.openjdk.org/jdk17u-dev/pull/2263/files
Webrev: https://webrevs.openjdk.org/?repo=jdk17u-dev&pr=2263&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8306040
Stats: 163 lines in 2 files changed: 161 ins; 0 del; 2 mod
Patch: https://git.openjdk.org/jdk17u-dev/pull/2263.diff
Fetch: git fetch https://git.openjdk.org/jdk17u-dev.git pull/2263/head:pull/2263
PR: https://git.openjdk.org/jdk17u-dev/pull/2263
More information about the jdk-updates-dev
mailing list