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

ListOrderedSet can have duplicates

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.2.1, 4.0
    • 4.1
    • None
    • None
    • tomcat 7, linux

    Description

      The static method, org.apache.commons.collections.set.ListOrderedSet.decorate(List list), has a comment "If the list contains duplicates, the duplicates are removed". It does not remove duplicates and will leave you in an inconsistent state if your list has duplicates. (i.e. the .size() result is smaller than the number of iterations from the iterator)

      Attachments

        Activity

          People

            Unassigned Unassigned
            jggoodfe J Goodfellow
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: