diff options
author | Elliott Hughes <enh@google.com> | 2009-09-23 17:01:24 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2009-09-25 11:03:05 -0700 |
commit | ab3721103266c7c9f58d5a9d32521a00a2c478d7 (patch) | |
tree | 1ee78ab44cdc790c0bca442182057c9f3242f4b4 /xml/src/main | |
parent | 0c071868fcbf5e61daeb5ee1ab55c6c2319cdf4a (diff) | |
download | libcore-ab3721103266c7c9f58d5a9d32521a00a2c478d7.zip libcore-ab3721103266c7c9f58d5a9d32521a00a2c478d7.tar.gz libcore-ab3721103266c7c9f58d5a9d32521a00a2c478d7.tar.bz2 |
Fix Node.getNextSibling bounds checking.
Obvious copy & paste error in InnerNodeImpl compared to LeafNodeImpl, plus
new test.
I've also fixed a typo that annoys me whenever I look at the XML test results,
and removed a KnownFailure for a test that passes (and has been passing for
some time).
Bug: 779
Diffstat (limited to 'xml/src/main')
-rw-r--r-- | xml/src/main/java/org/apache/harmony/xml/dom/InnerNodeImpl.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xml/src/main/java/org/apache/harmony/xml/dom/InnerNodeImpl.java b/xml/src/main/java/org/apache/harmony/xml/dom/InnerNodeImpl.java index f71d289..2fd16d0 100644 --- a/xml/src/main/java/org/apache/harmony/xml/dom/InnerNodeImpl.java +++ b/xml/src/main/java/org/apache/harmony/xml/dom/InnerNodeImpl.java @@ -69,7 +69,7 @@ public abstract class InnerNodeImpl extends LeafNodeImpl { } public Node getNextSibling() { - if (parent == null || index >= parent.children.size()) { + if (parent == null || index + 1 >= parent.children.size()) { return null; } |