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

ListOrderedSet can have duplicates

    XMLWordPrintableJSON

    Details

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

      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

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

              Dates

              • Created:
                Updated:
                Resolved: