Attributes.java (Name): Fix name check.
authorAnthony Green <green@redhat.com>
Sun, 10 Nov 2002 21:13:44 +0000 (21:13 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Sun, 10 Nov 2002 21:13:44 +0000 (21:13 +0000)
2002-11-10  Anthony Green  <green@redhat.com>

* java/util/jar/Attributes.java (Name): Fix name check.

From-SVN: r58992

libjava/ChangeLog
libjava/java/util/jar/Attributes.java

index 7481006d2037e01cf2f490f015f22b7372e56e54..ccb196cce583167dde83413d9cc40647243581e4 100644 (file)
@@ -1,3 +1,7 @@
+2002-11-10  Anthony Green  <green@redhat.com>
+
+       * java/util/jar/Attributes.java (Name): Fix name check.
+
 2002-11-10  Mark Wielaard  <mark@klomp.org>
 
        * java/lang/natClass.cc (initializeClass): Throw NoClassDefFoundError
index 0bf27bdb9ec29adf67e0a546345123a7fb7f7b9c..ea203446eaa6973b9c4613e5f688bd6ce3f91037 100644 (file)
@@ -1,5 +1,5 @@
 /* Attributes.java -- Represents attribute name/value pairs from a Manifest
-   Copyright (C) 2000 Free Software Foundation, Inc.
+   Copyright (C) 2000, 2002 Free Software Foundation, Inc.
 
 This file is part of GNU Classpath.
 
@@ -285,6 +285,7 @@ public class Attributes implements Cloneable, Map
       // all other characters must be alphanums, '-' or '_'
       for (int i = 1; i < chars.length; i++)
        {
+         c = chars[i];
          if (!((c >= 'a' && c <= 'z') ||
                (c >= 'A' && c <= 'Z') ||
                (c >= '0' && c <= '9') || (c == '-') || (c == '_')))