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

Infinite Loop in AnnotationIndexImpl tree()

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.1
    • Fix Version/s: 2.2
    • Component/s: Core Java Framework
    • Labels:
      None
    • Environment:

      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

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

              Dates

              • Created:
                Updated:
                Resolved: