RFR: 8233451: (fs) Files.newInputStream() cannot be used with character special files
Alan Bateman
alanb at openjdk.org
Tue Oct 15 15:21:14 UTC 2024
On Tue, 15 Oct 2024 15:15:00 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:
>> src/java.base/windows/native/libnio/ch/FileDispatcherImpl.c line 402:
>>
>>> 400: HANDLE handle = (HANDLE)(handleval(env, fdo));
>>> 401: jlong available;
>>> 402: if (handleAvailable((jlong)handle, &available)) {
>>
>> Ugh, we shouldn't be using handleAvailable here. This native method needs to stand on its own.
>
> Yeah, I was not sure about that. I had a standalone version before this.
When/if we get to the point that FIS/FOS/RAF is implemented on FileChannel then it will become clearer.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/21508#discussion_r1801401151
More information about the nio-dev
mailing list