[
https://issues.apache.org/jira/browse/TRINIDAD-2158?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13146969#comment-13146969
]
Paresh Kumar Acharya commented on TRINIDAD-2158:
------------------------------------------------
The _nextEntry() method of NodeIterator class is updated to fix the issue.
> NodeIterator iterates the colection more no of times than the size of the
> collection.
> -------------------------------------------------------------------------------------
>
> Key: TRINIDAD-2158
> URL: https://issues.apache.org/jira/browse/TRINIDAD-2158
> Project: MyFaces Trinidad
> Issue Type: Bug
> Components: Components
> Affects Versions: 2.0.2-core
> Reporter: Paresh Kumar Acharya
> Attachments: trunk.patch
>
>
> The class org.apache.myfaces.trinidad.model.RowKeySetTreeImpl contains two
> Iterator Implementations PathIterator and NodeIterator.
> When the NodeIterator is used interanally to iterate the selected Tree or
> TreeTable nodes(rows), the iterator iterates more no of times than the total
> number of the slected nodes(rows). The iterator.next() returns the same
> node(row) more than once.
> This issue occurs because of the follwoing 2 reasons.
> 1) The currentIterator instance is not updated by taking the next iterator
> from the iteratorStack when one node completeley iterator.
> 2) Even when a node doesn't have any child nodes, iterator instances are
> created and pushed to the iteratorStack.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira