8140449: (fs) Paths.get("x").relativize("") return ..\ on Windows
Roger Riggs
Roger.Riggs at Oracle.com
Fri Jun 17 14:58:30 UTC 2016
HI Alan,
Looks ok,
Roger
On 6/17/2016 5:59 AM, 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/
>
> Thanks,
>
> Alan
>
More information about the nio-dev
mailing list