Why doesn't FileSystemProvider#getFileAttributeView() throw an IOException?
Francis Galiegue
fgaliegue at gmail.com
Fri Dec 12 14:00:00 UTC 2014
All other methods to read/write attributes (including the one in
Files) do. This one is the only exception.
This is all the more strange that you are theoretically supposed to
follow symlinks if the relevant link option is passed and your fs
supports it, and .toRealPath() _does_ throw an IOException...
Overlook?
At this moment, it appears that on error there is no other choice than
to throw an unchecked exception... Ouch.
--
Francis Galiegue, fgaliegue at gmail.com, https://github.com/fge
JSON Schema in Java: http://json-schema-validator.herokuapp.com
Parsers in pure Java: https://github.com/parboiled1/grappa (redde
Caesaris: https://github.com/sirthias)
More information about the nio-dev
mailing list