[9] RFC on 8066943: (fs) Path.relativize() gives incorrect result for ".." on Windows

Weijun Wang weijun.wang at oracle.com
Sat May 2 01:36:26 UTC 2015



On 5/2/2015 4:07 AM, Brian Burkhalter wrote:
>
> On May 1, 2015, at 12:38 PM, Alan Bateman <Alan.Bateman at oracle.com
> <mailto:Alan.Bateman at oracle.com>> wrote:
>
>>> Which case, there are two: ../x
>> This one.
>
> I sort of figured that out in the intervening time.
>
>> For the "".relativize("x") then you are going from the current
>> directory to "x" so the answer should be "x". We seem to have it right
>> everywhere except Windows.
>
> Was working on Windows yesterday with JDK 9 but I shall re-test.

You fixed it in https://bugs.openjdk.java.net/browse/JDK-8072495. :-)

Thanks
Max

>
> Thanks,
>
> Brian


More information about the nio-dev mailing list