RFR: 8358688: HttpClient: Simplify file streaming in RequestPublishers.FilePublisher [v2]
Volkan Yazici
vyazici at openjdk.org
Fri Jun 6 08:11:35 UTC 2025
> Simplifies content streaming for `HttpRequest.BodyPublishers::ofFile(Path)`, which delegates to `RequestPublishers.FilePublisher::create(Path)`. This effectively replaces all usages of `FileInputStream::new` in `HttpClient` with `Files::newInputStream(Path)`. See the JBS ticket description for the full story.
>
> Also removing certain test files which were rendered redundant after `SecurityManager` removal. We do this in this PR, since tests were added due to touched lines.
>
> `tier1,2` results on b5f3c8dc6f4 are attached to the ticket.
Volkan Yazici has updated the pull request incrementally with one additional commit since the last revision:
Add back removed SM tests
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/25662/files
- new: https://git.openjdk.org/jdk/pull/25662/files/b5f3c8dc..0a7800ab
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=25662&range=01
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=25662&range=00-01
Stats: 701 lines in 2 files changed: 701 ins; 0 del; 0 mod
Patch: https://git.openjdk.org/jdk/pull/25662.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/25662/head:pull/25662
PR: https://git.openjdk.org/jdk/pull/25662
More information about the net-dev
mailing list