[
https://issues.apache.org/jira/browse/WICKET-428?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Alastair Maw updated WICKET-428:
--------------------------------
Fix Version/s: 1.3
Assignee: Alastair Maw
Fixed with a call to hasNext(). Worryingly, hasNext() was also broken, so I've
fixed that too. I've also added a unit test, and fixed all the other iterators,
which were similarly broken.
> MiniMap.iterator().next() should throw NoSuchElementException
> -------------------------------------------------------------
>
> Key: WICKET-428
> URL: https://issues.apache.org/jira/browse/WICKET-428
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.2.5
> Reporter: Jan Bareš
> Assigned To: Alastair Maw
> Priority: Trivial
> Fix For: 1.3
>
>
> The wicket.util.collections.MiniMap.iterator().next() should throw
> NoSuchElementException when there are no more elements to return (line 235),
> please add:
> if(i >= size)
> throw new NoSuchElementException();
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.