[Patch] java.util.PropertyPermissionCollection
Michael Koch
konqueror@gmx.de
Sun Sep 26 17:58:00 GMT 2004
Hi list,
I just commited the attached patch to merge a little bug fix done by
Casey Marshall in GNU classpath.
Michael
2004-09-24 Casey Marshall <csm@gnu.org>
* java/util/PropertyPermissionCollection.java
(implies): avoid infinite loop.
-------------- next part --------------
Index: java/util/PropertyPermissionCollection.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/util/PropertyPermissionCollection.java,v
retrieving revision 1.2
diff -u -r1.2 PropertyPermissionCollection.java
--- java/util/PropertyPermissionCollection.java 9 Sep 2004 19:44:07 -0000 1.2
+++ java/util/PropertyPermissionCollection.java 24 Sep 2004 13:27:26 -0000
@@ -147,7 +147,7 @@
return true;
}
- prefixLength = name.lastIndexOf('.', prefixLength);
+ prefixLength = name.lastIndexOf('.', prefixLength - 1);
if (prefixLength < 0)
return false;
name = name.substring(0, prefixLength + 1) + '*';
More information about the Java-patches
mailing list