Project

Profile

Help

Bug #4907

IntHashMap.IntHashMapValueIterator - hasNext() is not stateless

Added by Michael Kay 11 days ago. Updated 11 days ago.

Status:
New
Priority:
Low
Assignee:
Category:
-
Sprint/Milestone:
-
Start date:
2021-02-16
Due date:
% Done:

0%

Estimated time:
Legacy ID:
Applies to branch:
Fix Committed on Branch:
Fixed in Maintenance Release:

Description

The class IntHashMap.IntHashMapValueIterator does not correctly implement the java.lang.Iterator interface because its hasNext() method is stateful - the iterator works only if hasNext() is called exactly once before every call of next().

History

#1 Updated by Michael Kay 11 days ago

IntHashSetIterator suffers the same problem.

Please register to edit this issue

Also available in: Atom PDF