RFR: 8366254: (fs) UnixException.translateToIOException should translate ELOOP to FileSystemLoopException [v2]
Brian Burkhalter
bpb at openjdk.org
Wed Aug 27 19:39:17 UTC 2025
On Wed, 27 Aug 2025 19:29:57 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:
>> src/java.base/unix/classes/sun/nio/fs/UnixException.java line 97:
>>
>>> 95: if (errno() == UnixConstants.ELOOP)
>>> 96: return new FileSystemLoopException(file + ", " + other + ", "
>>> 97: + errorString()
>>
>> FileSystemLoopException doesn't have have a ctor for the 2-file usages, and 'other' may be null. So need to think if this should be handled at the use-site or whether they should just use 'file'.
>
>> So need to think if this should be handled at the use-site or whether they should just use 'file'.
>
> I was actually trying to craft a better version of these lines just now.
See 22ceb99.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/26966#discussion_r2305127358
More information about the nio-dev
mailing list