RFR: 8368165: (fs) Path.toRealPath does not perform correctly for symbolic links in a mapped drive (win)

Alan Bateman alanb at openjdk.org
Wed Oct 29 18:29:27 UTC 2025


On Wed, 29 Oct 2025 00:52:18 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

> If `getFinalPath` throws an exception, or converts a drive path to a UNC path, then fall back to the slow path which uses `resolveAllLinks`.

toRealPath is specified to throw if it fails. The error `FileSystemException: Z:\link: The name of the file cannot be resolved by the system` seems okay. So I'm not yet convinced we need to change anything.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/28032#issuecomment-3463077817


More information about the nio-dev mailing list