Uploaded image for project: 'UIMA'
  1. UIMA
  2. UIMA-519

Infinite Loop in AnnotationIndexImpl tree()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1
    • 2.2
    • Core Java Framework
    • 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));
      }

      Attachments

        Activity

          People

            twgoetz Thilo Goetz
            mtthw.cmpbll Matthew Campbell
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: