diff options
author | Lillian Angel <langel@redhat.com> | 2006-04-18 21:24:32 +0000 |
---|---|---|
committer | Lillian Angel <langel@redhat.com> | 2006-04-18 21:24:32 +0000 |
commit | 1bddca0f013fd66a8e6d174e9323ca1029b7262d (patch) | |
tree | 7d4728bd22e48c3c9b3964215dc32c42c26bfd99 /gnu | |
parent | 11de7e7288fa0932f683fd026c0d848bedb42b3e (diff) | |
download | classpath-1bddca0f013fd66a8e6d174e9323ca1029b7262d.tar.gz |
2006-04-18 Lillian Angel <langel@redhat.com>
* gnu/xml/dom/DomDocument.java
(checkNCName): Reverted last patch. Added check for colon at
last position back in.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/xml/dom/DomDocument.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gnu/xml/dom/DomDocument.java b/gnu/xml/dom/DomDocument.java index 0d52a23ff..a8d0471c8 100644 --- a/gnu/xml/dom/DomDocument.java +++ b/gnu/xml/dom/DomDocument.java @@ -535,10 +535,9 @@ public class DomDocument int index = name.indexOf(':'); if (index != -1) { - if (index == 0 || name.lastIndexOf(':') != index) + if (index == 0 || index == (len - 1) || name.lastIndexOf(':') != index) { - throw new DomDOMException(DOMException.NAMESPACE_ERR, - name, null, 0); + throw new DomDOMException(DOMException.NAMESPACE_ERR, name, null, 0); } } } |