Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-23511

Document and Database DocumentIterator implementations never throw NoSuchElementException

    XMLWordPrintable

Details

    • Unknown
    • N/A
    • N/A

    Description

      The specification of Iterator indicates that next() should throw a NoSuchElementException when there is no element left. DatabaseDocumentIterator and SolrDocumentIterator assume they simple won't be called in that case and behave as if there was always an element left (in practice it will produce a IndexOutOfBoundsException with current code).

      Attachments

        Activity

          People

            tmortagne Thomas Mortagne
            tmortagne Thomas Mortagne
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: