jdk/src/share/classes/sun/nio/fs/AbstractAclFileAttributeView.java
changeset 8808 fc799c458da8
parent 8158 77d9c0f1c19f
child 9035 1255eb81cc2f
--- a/jdk/src/share/classes/sun/nio/fs/AbstractAclFileAttributeView.java	Fri Mar 18 19:46:02 2011 +0000
+++ b/jdk/src/share/classes/sun/nio/fs/AbstractAclFileAttributeView.java	Sat Mar 19 14:21:52 2011 +0000
@@ -57,8 +57,8 @@
             setAcl((List<AclEntry>)value);
             return;
         }
-        throw new UnsupportedOperationException("'" + name() + ":" +
-                attribute + "' not supported");
+        throw new IllegalArgumentException("'" + name() + ":" +
+            attribute + "' not recognized");
     }
 
     @Override
@@ -81,6 +81,8 @@
                 owner = true;
                 continue;
             }
+            throw new IllegalArgumentException("'" + name() + ":" +
+                attribute + "' not recognized");
         }
         Map<String,Object> result = new HashMap<>(2);
         if (acl)