RFR: 8263898: (fs) Files.newOutputStream on the "NUL" special device throws FileSystemException: "nul: Incorrect function" (win)
Brian Burkhalter
bpb at openjdk.java.net
Wed Mar 24 23:49:56 UTC 2021
This request proposes to change the native method `WindowsNativeDispatcher.SetEndOfFile()` to succeed even if the Windows function `SetEndOfFile()` returns zero if `GetFileSizeEx()` called on the handle succeeds and reveals a file size of zero.
-------------
Commit messages:
- 8263898: (fs) Files.newOutputStream on the "NUL" special device throws FileSystemException: "nul: Incorrect function" (win)
Changes: https://git.openjdk.java.net/jdk/pull/3183/files
Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=3183&range=00
Issue: https://bugs.openjdk.java.net/browse/JDK-8263898
Stats: 53 lines in 2 files changed: 50 ins; 0 del; 3 mod
Patch: https://git.openjdk.java.net/jdk/pull/3183.diff
Fetch: git fetch https://git.openjdk.java.net/jdk pull/3183/head:pull/3183
PR: https://git.openjdk.java.net/jdk/pull/3183
More information about the nio-dev
mailing list