RFR: 8280881: (fs) UnixNativeDispatcher.close0 may throw UnixException [v6]
Brian Burkhalter
bpb at openjdk.java.net
Tue Mar 8 19:48:45 UTC 2022
On Sun, 27 Feb 2022 18:13:03 GMT, Alan Bateman <alanb at openjdk.org> wrote:
>> Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision:
>>
>> 8280881: Suppress some more exceptions; remove no longer needed close()
>
> src/java.base/unix/classes/sun/nio/fs/UnixCopyFile.java line 189:
>
>> 187: if (sfd >= 0) {
>> 188: source.getFileSystem().copyNonPosixAttributes(sfd, dfd);
>> 189: close(sfd, null);
>
> This should be `close(sfd, e -> null);`
Fixed in commit 0bc1ffd.
-------------
PR: https://git.openjdk.java.net/jdk/pull/7467
More information about the nio-dev
mailing list