RFR: 8342086: FileInputStream.available() fails with "Incorrect function" for "nul" path (win)
Brian Burkhalter
bpb at openjdk.org
Wed Oct 16 18:45:11 UTC 2024
On Wed, 16 Oct 2024 16:56:38 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:
> Modify the `handleAvailable` native code path to ignore an `ERROR_INVALID_FUNCTION` encountered by `PeekNamedPipe` and update an existing test to verify this change.
I verified that `PeekNamedPipe` also fails with `ERROR_INVALID_FUNCTION` when the supplied handle is `STD_INPUT_HANDLE`.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/21543#issuecomment-2417628951
More information about the core-libs-dev
mailing list