RFR: 8263898: (fs) Files.newOutputStream on the "NUL" special device throws FileSystemException: "nul: Incorrect function" (win) [v4]

Brian Burkhalter bpb at openjdk.java.net
Fri Mar 26 18:59:48 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.

Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision:

  Rename test to NulDevice and improve

-------------

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/3183/files
  - new: https://git.openjdk.java.net/jdk/pull/3183/files/8389cda0..079b7854

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=3183&range=03
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=3183&range=02-03

  Stats: 116 lines in 2 files changed: 72 ins; 44 del; 0 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