Path.startsWith() etc

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


Hi,

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

Thoughts?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/nio-dev/attachments/20101130/d1010162/attachment.html 


More information about the nio-dev mailing list