8140449: (fs) Paths.get("x").relativize("") return ..\ on Windows
Chris Hegarty
chris.hegarty at oracle.com
Fri Jun 17 14:55:45 UTC 2016
On 17/06/16 10:59, Alan Bateman wrote:
>
> This issue relates to two corner cases on Windows that result in a
> leading slash. One is Paths.get("C:").toAbsolutePath(), the other is
> Paths.get("x").relativize(""). The changes are simple and I've expanded
> the test coverage to cover more cases. There is further work requires on
> relativize but that is for another issue. The proposed changes are here:
>
> http://cr.openjdk.java.net/~alanb/8140449/webrev/
This looks fine Alan.
-Chris.
More information about the nio-dev
mailing list