8140449: (fs) Paths.get("x").relativize("") return ..\ on Windows

Alan Bateman Alan.Bateman at oracle.com
Fri Jun 17 15:28:47 UTC 2016



On 17/06/2016 16:02, Wang Weijun wrote:
>   246             if (remaining.length() == 0) {
>   247                 return defaultDirectory;
>
> What is defaultDirectory ends with \ above? Shall we remove it?
>
It will have a trailing slash when the default directory is the root 
directory (C:\) but that is okay.

-Alan.


More information about the nio-dev mailing list