Path.checkAccess (6873681)

Alan Bateman Alan.Bateman at oracle.com
Wed Oct 13 09:32:45 PDT 2010


Rémi Forax wrote:
> Usually when a method can fail for different reasons we use different 
> exceptions.
> checkAccess already returns different kind of IOException so I don't 
> see your point.
It would be great to get rid of checkAccess but we have to provide some 
means for those that think they need it. The issue with the current 
method is that it's not easy to use, especially where you want to take 
action where you have the requested access.

-Alan.


More information about the nio-dev mailing list