RFR: 8241619: (fs) Files.newByteChannel(path, Set.of(CREATE_NEW, READ)) does not throw a FileAlreadyExistsException when the file exists
Brian Burkhalter
bpb at openjdk.java.net
Fri Mar 19 00:38:38 UTC 2021
On Fri, 19 Mar 2021 00:27:44 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:
>> Are you planning to link the use of "optional specific exception" in FileChannel to the section in the java.nio.file package description? Also if we are adding optional specific exceptions to FileChannel.open then we'll have to do the same for AsynchronousFileChannel.open.
>
> Added "optional specific exception" link to `FileChannel.open()` and `@throws FileAlreadyExistsException` to `AsynchronousFileChannel.open().
The CSR https://bugs.openjdk.java.net/browse/JDK-8263623 is also updated.
-------------
PR: https://git.openjdk.java.net/jdk/pull/2980
More information about the nio-dev
mailing list