Community
Participate
Working Groups
Build ID: I20070625-1500 Steps To Reproduce: N/A More information: The iterators of org.eclipse.imp.pdb.impl.hash.Tree and org.eclipse.imp.pdb.impl.hash.Tuple do not entirely adhere to the java.util.Iterator interface. Calling 'Iterator#next()' on the iterators of Tree or Tuple too many times results in an error. However, according to the specification a NoSuchElementException should be thrown in this case instead (although I admit the spec isn't all that clear). See: http://java.sun.com/j2se/1.5.0/docs/api/java/util/Iterator.html#next() This is relatively easy to fix. Just add this, as first line, to the 'Iterator#next()' method(s): if(!hasNext()) throw new NoSuchElementException("No more elements in this iteration");