RFR: 8360028: (fs) Path.relativize throws StringIndexOutOfBoundsException (win) [v2]
Alan Bateman
alanb at openjdk.org
Thu Jul 3 07:33:47 UTC 2025
On Wed, 2 Jul 2025 23:39:17 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:
>> Ignore empty name elements in `WindowsPath.normalize()`.
>
> Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision:
>
> 8360028: Returned normalized string from WindowsLinkSupport.readLinkImpl
src/java.base/windows/classes/sun/nio/fs/WindowsLinkSupport.java line 361:
> 359:
> 360: // return normalized path string
> 361: return WindowsPathParser.parse(target).path();
This looks right, I'm just wondering if we now have cases where this will be parsed again. If then they I think this is good and we can drop the change to WindowsPath.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/26080#discussion_r2182070199
More information about the nio-dev
mailing list