You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "Joe Kelly (JIRA)" <ji...@apache.org> on 2007/04/20 21:31:15 UTC
[jira] Updated: (COLLECTIONS-249) SetUniqueList.addAll(int index,
Collection coll) adds to end of list instead of at specified index
[ https://issues.apache.org/jira/browse/COLLECTIONS-249?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Joe Kelly updated COLLECTIONS-249:
----------------------------------
Attachment: TestSetUniqueList.patch
Here is a patch to TestSetUniqueList, which shows the bug. When you run it, the test fails with the following message "First new element should be at index 0 expected:<2> but was:<1>". The new unique element was added but it was added in the wrong place.
> SetUniqueList.addAll(int index, Collection coll) adds to end of list instead of at specified index
> --------------------------------------------------------------------------------------------------
>
> Key: COLLECTIONS-249
> URL: https://issues.apache.org/jira/browse/COLLECTIONS-249
> Project: Commons Collections
> Issue Type: Bug
> Components: List
> Affects Versions: 3.2
> Reporter: Joe Kelly
> Priority: Minor
> Attachments: TestSetUniqueList.patch
>
>
> When you call SetUniqueList.addAll(int index, Collection coll), it incorrectly adds the new elements to the end of the list instead of at the specified index.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org