> This change fixes "JDK-8383867: File.getCanonicalPath drops backslash from > UNC path with directory junctions" when running Java in Windows from a > network shared folder, like "\\MyNetworkShare\jdk\bin\java.exe", JVM drops a > backslash when creating a canonical path if the path goes through a reparse > point - it turns to "\MyNetworkShare\jdk\bin\java.exe" (the only backslash in > the front). > > I extended `test\jdk\java\io\File\GetCanonicalPath.java` test with the > reparse point scenario. The test fails before the fix, and passes with the > fix. > > > --------- > - [x] I confirm that I make this contribution in accordance with the [OpenJDK > Interim AI Policy](https://openjdk.org/legal/ai).
Roman Marchenko has updated the pull request incrementally with one additional commit since the last revision: fixed the order to correctly remove drive mappring in case of failure ------------- Changes: - all: https://git.openjdk.org/jdk/pull/31192/files - new: https://git.openjdk.org/jdk/pull/31192/files/4f22d7dc..128fa56e Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=31192&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=31192&range=00-01 Stats: 7 lines in 1 file changed: 3 ins; 3 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/31192.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/31192/head:pull/31192 PR: https://git.openjdk.org/jdk/pull/31192
