[kaffe] CVS kaffe (robilad): Fixed small JAXP bug

Kaffe CVS cvs-commits at kaffe.org
Mon Nov 1 12:13:41 PST 2004


PatchSet 5395 
Date: 2004/11/01 19:56:16
Author: robilad
Branch: HEAD
Tag: (none) 
Log:
Fixed small JAXP bug

2004-11-01  Dalibor Topic  <robilad at kaffe.org>

        * libraries/javalib/gnu/xml/dom/DomNode.java:
        Fixed off-by-one bug.

Members: 
	ChangeLog:1.2945->1.2946 
	libraries/javalib/gnu/xml/dom/DomNode.java:1.6->1.7 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.2945 kaffe/ChangeLog:1.2946
--- kaffe/ChangeLog:1.2945	Mon Nov  1 15:37:56 2004
+++ kaffe/ChangeLog	Mon Nov  1 19:56:16 2004
@@ -1,5 +1,10 @@
 2004-11-01  Dalibor Topic  <robilad at kaffe.org>
 
+	* libraries/javalib/gnu/xml/dom/DomNode.java:
+	Fixed off-by-one bug.
+
+2004-11-01  Dalibor Topic  <robilad at kaffe.org>
+
 	* libraries/javalib/gnu/xml/transform/DOMResultWrapper.java,
 	libraries/javalib/gnu/xml/transform/DOMSerializer.java,
 	libraries/javalib/gnu/xml/transform/DOMSourceLocator.java,
Index: kaffe/libraries/javalib/gnu/xml/dom/DomNode.java
diff -u kaffe/libraries/javalib/gnu/xml/dom/DomNode.java:1.6 kaffe/libraries/javalib/gnu/xml/dom/DomNode.java:1.7
--- kaffe/libraries/javalib/gnu/xml/dom/DomNode.java:1.6	Mon Nov  1 15:38:02 2004
+++ kaffe/libraries/javalib/gnu/xml/dom/DomNode.java	Mon Nov  1 19:56:20 2004
@@ -859,7 +859,7 @@
     {
 	if (parent == null || getNodeType() == ATTRIBUTE_NODE)
 	    return null;
-        return (index < parent.length) ? parent.children[index + 1] : null;
+        return ((index + 1) < parent.length) ? parent.children[index + 1] : null;
     }
 
 




More information about the kaffe mailing list