Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Won't Fix
-
None
-
None
-
None
-
None
Description
There is a name collision in org.apache.hadoop.fs.permission.AccessControlException and java.security.AccessControlException.
Since java.security.AccessControlException is not an IOException we cannot throw it directly as we do with FileNotFoundException.
Therefore, the only choice is to rename the hadoop AccessControlException to e.g., PermissionException (or AccessDeniedException).
To provide compatibility we can inherit PermissionException from AccessControlException, and deprecate the latter.