Commit 1323d7a9 by Anthony Green Committed by Tom Tromey

Attributes.java (Name): Fix name check.

2002-11-10  Anthony Green  <green@redhat.com>

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

From-SVN: r58992
parent c0cd8f67
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> 2002-11-10 Mark Wielaard <mark@klomp.org>
* java/lang/natClass.cc (initializeClass): Throw NoClassDefFoundError * java/lang/natClass.cc (initializeClass): Throw NoClassDefFoundError
......
/* Attributes.java -- Represents attribute name/value pairs from a Manifest /* 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. This file is part of GNU Classpath.
...@@ -285,6 +285,7 @@ public class Attributes implements Cloneable, Map ...@@ -285,6 +285,7 @@ public class Attributes implements Cloneable, Map
// all other characters must be alphanums, '-' or '_' // all other characters must be alphanums, '-' or '_'
for (int i = 1; i < chars.length; i++) for (int i = 1; i < chars.length; i++)
{ {
c = chars[i];
if (!((c >= 'a' && c <= 'z') || if (!((c >= 'a' && c <= 'z') ||
(c >= 'A' && c <= 'Z') || (c >= 'A' && c <= 'Z') ||
(c >= '0' && c <= '9') || (c == '-') || (c == '_'))) (c >= '0' && c <= '9') || (c == '-') || (c == '_')))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment