I have committed your fix to HDIterator and added your test case to the
Thanks for your contribution!
Rosenberg, Eric wrote:
>I'm having a problem iterating over the members of an HTree. It seems to
>fail with a java.util.NoSuchElementException whenever the iteration needs to
>span multiple HashBuckets. The problem seems to be that
>HashDirectory$HDIterator is relying on java.util.Iterator to return null
>when there are no more elements. However, when you call next() on
>java.util.Iterator and there are no more elements it throws a
>I rewrote the next() method in HashDirectory$HDIterator and it appears to
>work now, though I haven't tested it extensively. It also appears to resolve
>the problem I wrote about yesterday where the FastIterator was throwing
>NoSuchElementExceptions instead of returning null.