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.
Hi,
can you post a bug and/or patch for this on Sourceforge trackers?
thanks
-- Juha