Hi,
Please review and apply the patch.

Thanks & Regards,
Paresh

On 11/10/2011 10:59 AM, Paresh Kumar Acharya (Updated) (JIRA) wrote:
      [ 
https://issues.apache.org/jira/browse/TRINIDAD-2158?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Paresh Kumar Acharya updated TRINIDAD-2158:
-------------------------------------------

     Attachment: trunk.patch

Reuploaded the patch with Grant License to ASF selected.

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, 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



Reply via email to