You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gary D. Gregory (Jira)" <ji...@apache.org> on 2024/10/18 15:08:00 UTC

[jira] [Resolved] (COLLECTIONS-864) Documentation Bug: CollectionUtils.select(Iterable, Predicate, LinkedList)

     [ https://issues.apache.org/jira/browse/COLLECTIONS-864?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gary D. Gregory resolved COLLECTIONS-864.
-----------------------------------------
    Resolution: Cannot Reproduce

> Documentation Bug: CollectionUtils.select(Iterable<? extends ? extends InstanceofPredicate>, Predicate<? super ? extends InstanceofPredicate>, LinkedList<InstanceofPredicate>)
> -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: COLLECTIONS-864
>                 URL: https://issues.apache.org/jira/browse/COLLECTIONS-864
>             Project: Commons Collections
>          Issue Type: Bug
>            Reporter: Daniele
>            Priority: Minor
>
> *CollectionUtils.select(Iterable<? extends ? extends InstanceofPredicate>, Predicate<? super ? extends InstanceofPredicate>, LinkedList<InstanceofPredicate>):*
> A ConcurrentModificationException can be raised but not mentioned in  the specification.
> *Test used:*
> {code:java}
> public class CollectionUtils_11_failure_Test{
>     
>     public void testSelect_OutputCollection() throws Throwable {
>         UniquePredicate<Object> uniquePredicate0 = new UniquePredicate<Object>();
>         LinkedList<InstanceofPredicate> linkedList0 = new LinkedList<InstanceofPredicate>();
>         Class<InstanceofPredicate> class0 = InstanceofPredicate.class;
>         InstanceofPredicate instanceofPredicate0 = new InstanceofPredicate(class0);
>         try {
>             _methodResult__ = CollectionUtils.select((Iterable<? extends InstanceofPredicate>) linkedList0, (Predicate<? super InstanceofPredicate>) uniquePredicate0, linkedList0);
>         } catch (ConcurrentModificationException e) {
>             org.junit.Assert.fail();
>         }
>     }
> } {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)