Path of "." and ""
Alan Bateman
Alan.Bateman at oracle.com
Mon Dec 8 21:39:01 UTC 2014
On 08/12/2014 10:55, Wang Weijun wrote:
>> On Dec 8, 2014, at 18:51, Francis Galiegue <fgaliegue at gmail.com> wrote:
>>
>> On Mon, Dec 8, 2014 at 11:37 AM, Wang Weijun <weijun.wang at oracle.com> wrote:
>> [...]
>>> Also, the p1.relativize(p1) is empty but its getNameCount() is 1.
>>>
>> That is clearly a bug! Good find...
> Well, they said no.
>
> An empty path is defined as a path with one empty element.
>
>
That's right, and getNameCount should return 1 for this case.
-Alan.
More information about the nio-dev
mailing list