RFR: 8349812: (fs) Files.newByteChannel with empty path name and CREATE_NEW throws unexpected exception [v3]
Maxim Kartashev
mkartashev at openjdk.org
Thu Feb 13 10:46:11 UTC 2025
On Wed, 12 Feb 2025 21:52:01 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:
>> Maxim Kartashev has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Extended the test for empty path name
>
> test/jdk/java/nio/file/Files/SBC.java line 444:
>
>> 442: } catch (FileSystemException x) { }
>> 443:
>> 444: try (var channel = Files.newByteChannel(Path.of(""), READ, LinkOption.NOFOLLOW_LINKS)) {
>
> This sub-test fails on Windows with a `java.nio.file.AccessDeniedException`.
Should be fixed now. I also ran adjacent tests (`java/nio/file`) on Windows and Linux.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/23560#discussion_r1954261612
More information about the nio-dev
mailing list