jdk/src/solaris/classes/sun/nio/fs/SolarisAclFileAttributeView.java
changeset 3065 452aaa2899fc
parent 2057 3acf8e5e2ca0
child 4050 5e13972159e3
equal deleted inserted replaced
3063:a3fd491f7754 3065:452aaa2899fc
    96         for (AclEntry ace: acl) {
    96         for (AclEntry ace: acl) {
    97             int flags = 0;
    97             int flags = 0;
    98 
    98 
    99             // map UserPrincipal to uid and flags
    99             // map UserPrincipal to uid and flags
   100             UserPrincipal who = ace.principal();
   100             UserPrincipal who = ace.principal();
   101             if (!(who instanceof UnixUserPrincipals))
   101             if (!(who instanceof UnixUserPrincipals.User))
   102                 throw new ProviderMismatchException();
   102                 throw new ProviderMismatchException();
   103             UnixUserPrincipals.User user = (UnixUserPrincipals.User)who;
   103             UnixUserPrincipals.User user = (UnixUserPrincipals.User)who;
   104             int uid;
   104             int uid;
   105             if (user.isSpecial()) {
   105             if (user.isSpecial()) {
   106                 uid = -1;
   106                 uid = -1;