2004-09-24 Casey Marshall <csm@gnu.org>
* java/util/PropertyPermissionCollection.java (implies): avoid infinite loop. From-SVN: r88033
This commit is contained in:
committed by
Michael Koch
parent
54e075fe1e
commit
c80a4b7eec
@@ -147,7 +147,7 @@ class PropertyPermissionCollection extends PermissionCollection
|
||||
return true;
|
||||
}
|
||||
|
||||
prefixLength = name.lastIndexOf('.', prefixLength);
|
||||
prefixLength = name.lastIndexOf('.', prefixLength - 1);
|
||||
if (prefixLength < 0)
|
||||
return false;
|
||||
name = name.substring(0, prefixLength + 1) + '*';
|
||||
|
||||
Reference in New Issue
Block a user