# HG changeset patch # User weijun # Date 1441192846 -28800 # Node ID 2d9d66d0519f240b5fe931b31b90f4d1fad22dd4 # Parent 2342600f2adae5e986774ef2e81713c22f9d5eb8 8129789: implies() of ServicePermission and DelegationPermission underspecified Reviewed-by: mullan diff -r 2342600f2ada -r 2d9d66d0519f jdk/src/java.security.jgss/share/classes/javax/security/auth/kerberos/DelegationPermission.java --- a/jdk/src/java.security.jgss/share/classes/javax/security/auth/kerberos/DelegationPermission.java Wed Sep 02 03:02:14 2015 +0000 +++ b/jdk/src/java.security.jgss/share/classes/javax/security/auth/kerberos/DelegationPermission.java Wed Sep 02 19:20:46 2015 +0800 @@ -132,7 +132,9 @@ * Checks if this Kerberos delegation permission object "implies" the * specified permission. *
- * If none of the above are true, {@code implies} returns false. + * This method returns true if this {@code DelegationPermission} + * is equal to {@code p}, and returns false otherwise. + * * @param p the permission to check against. * * @return true if the specified permission is implied by this object, diff -r 2342600f2ada -r 2d9d66d0519f jdk/src/java.security.jgss/share/classes/javax/security/auth/kerberos/ServicePermission.java --- a/jdk/src/java.security.jgss/share/classes/javax/security/auth/kerberos/ServicePermission.java Wed Sep 02 03:02:14 2015 +0000 +++ b/jdk/src/java.security.jgss/share/classes/javax/security/auth/kerberos/ServicePermission.java Wed Sep 02 19:20:46 2015 +0800 @@ -179,7 +179,16 @@ * Checks if this Kerberos service permission object "implies" the * specified permission. *
- * If none of the above are true, {@code implies} returns false. + * More specifically, this method returns true if all of the following + * are true (and returns false if any of them are not): + *