This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Patch: jar Attributes fix
- From: Anthony Green <green at redhat dot com>
- To: java-patches at gcc dot gnu dot org
- Date: 30 Oct 2002 16:43:59 -0800
- Subject: Patch: jar Attributes fix
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') ||