[
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)