-
Type:
Bug
-
Resolution: Fixed
-
Priority:
P3
-
Affects Version/s: 9
-
Component/s: core-libs
-
b134
Paths.get("..").relativize(Paths.get("x")) returns "../x", while actually it should be the "current working directory/x". Of course we don't know what cwd is, so maybe an IAE should be thrown.
- duplicates
-
JDK-8211711 Path.relativize incorect if this path contains '.'
-
- Closed
-
- relates to
-
JDK-8140449 (fs) Paths.get("x").relativize("") return ..\ on Windows
-
- Closed
-
-
JDK-8072495 (fs) Path.relativize() gives incorrect result for empty path on Windows
-
- Resolved
-