8066915: (fs) Files.newByteChannel opens directories for cases where subsequent reads may fail
Alan Bateman
Alan.Bateman at oracle.com
Wed Dec 10 13:51:38 UTC 2014
On 10/12/2014 12:44, Francis Galiegue wrote:
> Can this possibly be fixed for Windows as well, instead of getting an
> AccessDeniedException?
AccessDeniedException (which is an IOException) is confusing, it's just
the translation of the "Access Denied" error that we get from Windows.
There are a few subtle issues to deal with but I think something is
possible. As I noted in the bug, we would prefer to keep this as a
separate issue as it requires changes in a different area of the code.
-Alan.
More information about the nio-dev
mailing list