[ 
https://issues.apache.org/jira/browse/ODFTOOLKIT-399?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nimarukan updated ODFTOOLKIT-399:
---------------------------------
    Description: 
In Table rowIterator the next() method does not advance correctly if it is 
called multiple times without an intervening call to hasNext().

(Also, if there are no more elements, it returns null rather than throwing 
NoSuchElementException as specified by java.util.Iterator.next().)

Update:

Another problem is that repeated rows are missed if hasNext() is called more 
than once per call to next().

Corresponding problems also occur in Table columnIterator().



  was:
In Table rowIterator the next() method does not advance correctly if it is 
called multiple times without an intervening call to hasNext().

(Also, if there are no more elements, it returns null rather than throwing 
NoSuchElementException as specified by java.util.Iterator.next().)

Update:

Problems also occur in Table columnIterator().




> Table rowIterator and columnIterator next() do not advance correctly if not 
> preceded by exactly 1 hasNext()
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: ODFTOOLKIT-399
>                 URL: https://issues.apache.org/jira/browse/ODFTOOLKIT-399
>             Project: ODF Toolkit
>          Issue Type: Bug
>          Components: simple api
>    Affects Versions: 0.6.1-incubating
>         Environment: org.apache.odftoolkit:simple-odf:0.8.1-incubating
> jdk1.8.0.51
>            Reporter: Nimarukan
>            Priority: Minor
>              Labels: patch, test
>         Attachments: 01a-test-table-TableRowIterator_NoRepeatsTest.patch, 
> 01b-test-table-TableColumnIterator_NoRepeatsTest.patch, 
> 01c-test-table-TableRowIterator_RepeatedRowTest.patch, 
> 01d-test-table-TableColumnIterator_RepeatedColumnTest.patch, 
> 02a-main-table-Table_SimpleColAndRowIterator_next-throwNoSuchElementException.patch,
>  
> 02b-main-table_Table_SimpleColAndRowIterators_findNext-doNotWriteTempField.patch,
>  
> 02c-main-table_Table_SimpleColAndRowIterators_clarifyFieldNamesNextCurrent.patch,
>  
> 02d-main-table_Table_SimpleColAndRowIterators_hasNextAvoidRedoFindNext.patch, 
> 02e-main-table_Table_SimpleColAndRowIters_findNext-incFieldOnlyIfNeeded.patch
>
>
> In Table rowIterator the next() method does not advance correctly if it is 
> called multiple times without an intervening call to hasNext().
> (Also, if there are no more elements, it returns null rather than throwing 
> NoSuchElementException as specified by java.util.Iterator.next().)
> Update:
> Another problem is that repeated rows are missed if hasNext() is called more 
> than once per call to next().
> Corresponding problems also occur in Table columnIterator().



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to