bu in Path.Relativize

Rémi Forax forax at univ-mlv.fr
Wed Feb 10 08:10:54 PST 2010


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


More information about the nio-dev mailing list