RFR: 8358688: HttpClient: Simplify file streaming in RequestPublishers.FilePublisher [v3]
Volkan Yazici
vyazici at openjdk.org
Wed Jun 11 09:15:29 UTC 2025
On Fri, 6 Jun 2025 11:07:34 GMT, Volkan Yazici <vyazici at openjdk.org> wrote:
>> 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:
>
> Update tests
> Could be worth a release note (if that's the case and the behaviour changed) - but probably not a CSR.
@dfuch, created [JDK-8359215](https://bugs.openjdk.org/browse/JDK-8359215) for the release note.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/25662#issuecomment-2961854320
More information about the net-dev
mailing list