RFR: 8360028: (fs) Path.relativize throws StringIndexOutOfBoundsException (win)

Brian Burkhalter bpb at openjdk.org
Tue Jul 1 22:42:16 UTC 2025


Ignore empty name elements in `WindowsPath.normalize()`.

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

Commit messages:
 - 8360028: (fs) Path.relativize throws StringIndexOutOfBoundsException (win)

Changes: https://git.openjdk.org/jdk/pull/26080/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=26080&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8360028
  Stats: 7 lines in 1 file changed: 6 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/26080.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/26080/head:pull/26080

PR: https://git.openjdk.org/jdk/pull/26080


More information about the nio-dev mailing list