Path.startsWith() etc

Benedict Elliott Smith lists at
Tue Nov 30 03:15:11 PST 2010


The UnixPath implementation behaves rather annoyingly when the argument is a
different type of Path.

Currently a java.nio.file.ProviderMismatchException is thrown, but for ease
of use it would be preferable (to my mind) to simply return false.

Given that the new Path APIs have been designed to make using different
providers interchangeably and uniformly, does it seem sensible to make as
many methods as possible "safe" with respect to interaction between provider

-------------- next part --------------
An HTML attachment was scrubbed...

More information about the nio-dev mailing list