1 Reply Latest reply on May 23, 2002 12:44 PM by Juha Lindfors

    Bug in org.jboss.mx.metadata.AttributeOperationResolver?

    potian Newbie

      I found lookup(String attrName) method has trouble with infinite loop.
      OUTER_NODE: while (node != null)
      {
      if (attrh < node.hash)
      {
      node = node.loKid;
      }
      else if (attrh > node.hash)
      {
      node = node.hiKid;
      }
      else
      {
      for (int i = node.eqKid.length - 1; i > -1; i--)
      {
      if (attrName.equals(node.eqKid.val))
      {
      rval = node.eqKid
      .code;
      break OUTER_NODE;
      }
      }
      }
      }

      in this loop, if key's hashcode is equal to one tst node's hash, but has not insert into this TST tree,
      then it will never exit.