RFR: 8358688: HttpClient: Simplify file streaming in RequestPublishers.FilePublisher [v3]
Daniel Fuchs
dfuchs at openjdk.org
Fri Jun 6 11:51:49 UTC 2025
On Fri, 6 Jun 2025 11:13:38 GMT, Volkan Yazici <vyazici at openjdk.org> wrote:
>> OK
>
>> The "default file system" is required to support that feature, but there can be other file systems that support that too.
>
> I need to amend this statement: Per [`Path::toFile` specification]( https://docs.oracle.com/en/java/javase/24/docs/api/java.base/java/nio/file/Path.html#toFile()), except the default one obtained by `FileSystems::getDefault`, `FileSystem` implementations are expected to throw `UnsupportedOperationException` on `Path::toFile`. Note that this is enforced by the specification; there is technically nothing blocking a custom `FileSystem` implementation from returning a `File` (i.e., not throwing `UOE`) from `Path::toFile`.
Thanks for the clarification.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/25662#discussion_r2132050544
More information about the net-dev
mailing list