Patch: jar Attributes fix
Anthony Green
green@redhat.com
Wed Oct 30 17:44:00 GMT 2002
I stumbled across this today while browsing the code. The test for
invalid attribute names is broken without this change.
I've also submitted this to GNU Classpath. Ok?
AG
2002-10-30 Anthony Green <green@redhat.com>
* java/util/jar/Attributes.java (Name): Fix name check.
Index: java/util/jar/Attributes.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/util/jar/Attributes.java,v
retrieving revision 1.6
diff -2 -c -p -r1.6 Attributes.java
*** java/util/jar/Attributes.java 18 Jun 2002 15:40:12 -0000 1.6
--- java/util/jar/Attributes.java 31 Oct 2002 01:40:22 -0000
*************** public class Attributes implements Clone
*** 286,289 ****
--- 286,290 ----
for (int i = 1; i < chars.length; i++)
{
+ c = chars[i];
if (!((c >= 'a' && c <= 'z') ||
(c >= 'A' && c <= 'Z') ||
More information about the Java-patches
mailing list