To my great surprise, following snippet prints false on jdk1.8.0_u144
public class Tmp {
public static void main(String[] args) {
File f = new File(".");
boolean result = f.toPath().toUri().toString().equals(f.toURI().toString());
System.out.println("result = " + result);
}
}
Obviously, java.io.File#toURI and java.nio.Path#toUri return different presentations. The question is, which of them is correct (according to RFC 8089)?