git: openjdk/jdk: 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:19:40 UTC 2021


Changeset: 353807c5
Author:    Brian Burkhalter <bpb at openjdk.org>
Date:      2021-03-30 18:18:37 +0000
URL:       https://git.openjdk.java.net/jdk/commit/353807c5

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

Reviewed-by: jpai, alanb

! src/java.base/windows/classes/sun/nio/fs/WindowsChannelFactory.java
! src/java.base/windows/classes/sun/nio/fs/WindowsNativeDispatcher.java
! src/java.base/windows/native/libnio/fs/WindowsNativeDispatcher.c
+ test/jdk/java/nio/file/Files/NulDevice.java



More information about the jdk-changes mailing list