[9] RFR of 8072495: (fs) Path.relativize() gives incorrect result for empty path on Windows

Daniel Fuchs daniel.fuchs at oracle.com
Thu Feb 5 12:08:18 UTC 2015


On 05/02/15 08:20, Alan Bateman wrote:
> On 04/02/2015 22:16, Brian Burkhalter wrote:
>> Please review at your convenience:
>>
>> Issue:    https://bugs.openjdk.java.net/browse/JDK-8072495
>> Patch:    http://cr.openjdk.java.net/~bpb/8066943/webrev.00/
>>
>>
> Thanks for taking this one. The changes look good. Minor point is to add
> 8072495 to the @bug in PathOps before you push.
>
> -Alan

Hi Brian,

Should there be:

  518         test("")
  519             .relativize("", "")
  520             .relativize("a", "a")
  521             .relativize("a\\b\\c", "a\\b\\c")

+                .relativize("C:\\a\\b\\c", "C:\\a\\b\\c");


best regards,

-- daniel


More information about the nio-dev mailing list