Uploaded image for project: 'Commons Collections'
  1. Commons Collections
  2. COLLECTIONS-566

IteratorUtils.collatedIterator do not use natural ordering if no comparator was provided

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.0
    • Fix Version/s: 4.1
    • Component/s: None
    • Labels:
      None

      Description

      In case a null comparator was provided natural ordering should be used, as stated in the javadoc.

      In fact an exception is thrown the first time the returned iterator is used.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              tn Thomas Neidhart
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: