bu in Path.Relativize

Alan Bateman Alan.Bateman at Sun.COM
Wed Feb 10 08:39:37 PST 2010


Rémi Forax wrote:
> It seems that relativize doesn't understand well the concept of 
> current directory (".").
>
>     Path path1 = Paths.get("foo.txt");
>     Path path2 = Paths.get(".");
>
>     Path relativize = path2.relativize(path1);
>     System.out.println(relativize);   // print ../foo.txt
>
> I use jdk7 b81 under linux,
> Rémi
You're right - I'll create a bug for this now. Thanks Rémi! 


More information about the nio-dev mailing list