Path of "." and ""

Wang Weijun weijun.wang at oracle.com
Mon Dec 8 10:55:28 UTC 2014


> 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.

I am just complaining a lot is not intuitive.

Another thing is that "/" is really empty, which has no element at all.

--Max

> 
> -- 
> 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