You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Daniele (Jira)" <ji...@apache.org> on 2024/07/24 13:43:00 UTC
[jira] [Updated] (COLLECTIONS-864) Documentation Bug: CollectionUtils.select(Iterable extends ? extends InstanceofPredicate>, Predicate super ? extends InstanceofPredicate>, LinkedList)
[ https://issues.apache.org/jira/browse/COLLECTIONS-864?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniele updated COLLECTIONS-864:
--------------------------------
Description:
*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}
> 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)