Path of "." and ""

Francis Galiegue fgaliegue at gmail.com
Mon Dec 8 10:58:00 UTC 2014


On Mon, Dec 8, 2014 at 11:55 AM, Wang Weijun <weijun.wang at oracle.com> 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.
>

... Which is illegal on any OS I can think of.

No, this is clearly a bug to my eyes.

-- 
Francis Galiegue, fgaliegue at gmail.com, https://github.com/fge
JSON Schema in Java: http://json-schema-validator.herokuapp.com
Parsers in pure Java: https://github.com/parboiled1/grappa (redde
Caesaris: https://github.com/sirthias)


More information about the nio-dev mailing list