Oversight in documentation about the behaviour of .resolve{Sibling}() and .relativize()?

Alan Bateman Alan.Bateman at oracle.com
Sun Mar 23 17:24:17 UTC 2014


On 22/03/2014 09:23, Francis Galiegue wrote:
> :
> OK, admittedly I didn't read the package description and should have.
> Still, it is not very visible for "casual" users...
True but at the same time it can be annoying for every method to 
document NullPointerException, ClosedFileSystemException, ...

In the case of ProviderMismatchException then it might be beneficial to 
repeat the statement in Path's class description, that might improve the 
chances of it being noticed for the few cases that it might arise.


>
> With UnsupportedOperationException?
>
That would be best. As you'll see then UOE is already specification by 
several of the methods defined by FileSystemProvider.

-Alan


More information about the nio-dev mailing list