Uploaded image for project: 'ODF Toolkit'
  1. ODF Toolkit
  2. ODFTOOLKIT-399

Table rowIterator and columnIterator next() do not advance correctly if not preceded by exactly 1 hasNext()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 0.6.1-incubating
    • None
    • simple api
    • org.apache.odftoolkit:simple-odf:0.8.1-incubating
      jdk1.8.0.51

    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().

      Attachments

        Activity

          People

            Unassigned Unassigned
            nimarukan Nimarukan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: