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

Brian Burkhalter bpb at openjdk.java.net
Tue Mar 30 18:21:17 UTC 2021


On Wed, 24 Mar 2021 23:45:16 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

> 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.

This pull request has now been integrated.

Changeset: 353807c5
Author:    Brian Burkhalter <bpb at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/353807c5
Stats:     130 lines in 4 files changed: 125 ins; 0 del; 5 mod

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

Reviewed-by: jpai, alanb

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

PR: https://git.openjdk.java.net/jdk/pull/3183


More information about the nio-dev mailing list