Bugs item #593559, was opened at 2002-08-10 18:59
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=116035&aid=593559&group_id=16035
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: Broken children() in BranchTreeNode.java
Initial Comment:
The children() code in BranchTreeNode is obviously
wrong--hasMoreElements (which you should be able to
call multiple times) increments the index.
The logic is easy enough to fix, but IMHO this better:
public Enumeration children() {
return Collections.enumeration(children);
}
Here is the stack trace:
[java] java.lang.IndexOutOfBoundsException: Index:
1, Size: 1
[java] at java.util.ArrayList.RangeCheck
(ArrayList.java:508)
[java] at java.util.ArrayList.get(ArrayList.java:320)
[java] at
org.dom4j.swing.BranchTreeNode.getChildAt
(BranchTreeNode.java:68)
[java] at
org.dom4j.swing.BranchTreeNode$1.nextElement
(BranchTreeNode.java:58)
-Chris
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=116035&aid=593559&group_id=16035
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
dom4j-dev mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-dev