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

Francis Galiegue fgaliegue at gmail.com
Sat Mar 22 09:23:44 UTC 2014


On Sat, Mar 22, 2014 at 10:04 AM, Alan Bateman <Alan.Bateman at oracle.com> wrote:
[...]
>
> The package description documents the general exceptions that are possible.
> It includes this:
>
> "Unless otherwise noted, invoking a method of any class or interface in this
> package created by one provider with a parameter that is an object created
> by another provider, will throw ProviderMismatchException."
>

OK, admittedly I didn't read the package description and should have.
Still, it is not very visible for "casual" users...

[...]
>
> Originally FileStore didn't define the getXXXSpace methods but there were
> complaints that this this made it harder to use because it required getting
> the appropriate FileStoreAttributeView. Potentially we could allow for these
> methods to return -1 when the size it unknown. Alternatively if you can't
> really implement FileStore then the FileSystemProvider's getFileStore could
> fail.
>

With UnsupportedOperationException?

Regards,
-- 
Francis Galiegue, fgaliegue at gmail.com
JSON Schema in Java: http://json-schema-validator.herokuapp.com


More information about the nio-dev mailing list