DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=32073>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32073

ListOrderedSet broken or documentation wrong.

           Summary: ListOrderedSet broken or documentation wrong.
           Product: Commons
           Version: 3.1
          Platform: All
        OS/Version: Other
            Status: NEW
          Severity: Minor
          Priority: Other
         Component: Collections
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


The method ListOrderedSet.decorate(List list) "decorates" the list, implying 
that it leaves the underlying list un-modified.  But this is just not true - it 
requires a modifiable List so it can remove duplicates.  It should at least 
warn about this - so you don't have to look in the code to see how it works and 
see why it fails when using an unmodifiable list (such as given by 
java.util.Collections.unmodifiableList()).

Actually it'd be good to have a variant that worked with unmodifiable lists.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to