Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.1
-
None
-
Windows XP Professional, Java 1.6.0_01-b06, Building and running in Eclipse 3.3 with Java 5.0 compliance.
Description
There seems to be an infinite loop within the AnnotationIndexImpl addChildren() method, called by the tree() method. The subiterator that is passed in doesn't seem to be pushed to the next value, and so it just sits and loops forever. I changed the loop to the code below and it seems to solve the problem.
while (it.hasNext()) {
annot = (AnnotationFS) it.next();
dtr = new AnnotationTreeNodeImpl();
dtr.set(annot);
node.addChild(dtr);
addChildren(dtr, subiterator(annot));
}