RFR: 8360028: (fs) Path.relativize throws StringIndexOutOfBoundsException (win)
Brian Burkhalter
bpb at openjdk.org
Wed Jul 2 15:10:39 UTC 2025
On Wed, 2 Jul 2025 08:30:55 GMT, Alan Bateman <alanb at openjdk.org> wrote:
> > modifying WindowsFileSystemProvider.readSymbolicLink to normalize the path string obtained from the link before creating the WindowsPath.
>
> If the link target can contain redundant slashes then it will need to be normalized so I think we may have do this anyway.
The link target can contain redundant slashes on both Unix and Windows, but the problem does not manifest on Unix. In both cases, it looks like `readSymbolicLink` just uses whatever is in the link target, unfiltered.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/26080#issuecomment-3028235362
More information about the nio-dev
mailing list