Bug or not bug? Files.newInputStream() on a Path which is a directory does not fail until you read from it
Brian Burkhalter
brian.burkhalter at oracle.com
Fri Dec 5 23:58:44 UTC 2014
On Dec 5, 2014, at 3:53 PM, Francis Galiegue <fgaliegue at gmail.com> wrote:
> Agreed on that; also, it'd be really nice to have an exception such as
> IsDirectoryException or the like for such cases.
Or “NotFileException” if the methods in question are supported for files only.
Brian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/nio-dev/attachments/20141205/6cfc38e0/attachment.html>
More information about the nio-dev
mailing list