8066915: (fs) Files.newByteChannel opens directories for cases where subsequent reads may fail

Chris Hegarty chris.hegarty at oracle.com
Wed Dec 10 14:16:32 UTC 2014


On 10/12/14 13:51, Alan Bateman wrote:
> 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.

This approach make sense to me.  I've taken a look a the webrev and the 
changes look good.

-Chris.


More information about the nio-dev mailing list