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 Gregory (JIRA)" <ji...@apache.org> on 2018/03/29 17:28:00 UTC
[jira] [Updated] (COLLECTIONS-676) Modify
IteratorUtils.pushbackIterator signature to return PushbackIterator
[ https://issues.apache.org/jira/browse/COLLECTIONS-676?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gary Gregory updated COLLECTIONS-676:
-------------------------------------
Fix Version/s: (was: 4.2)
5.0
Reverting changes and setting version for 5.0 since this breaks binary compatibility:
{noformat}
Exception in thread "main" java.lang.NoSuchMethodError: org.apache.commons.collections4.IteratorUtils.peekingIterator(Ljava/util/Iterator;)Ljava/util/Iterator;
at test.test.BcTest.main(BcTest.java:8)
{noformat}
> Modify IteratorUtils.pushbackIterator signature to return PushbackIterator
> --------------------------------------------------------------------------
>
> Key: COLLECTIONS-676
> URL: https://issues.apache.org/jira/browse/COLLECTIONS-676
> Project: Commons Collections
> Issue Type: Improvement
> Components: Core, Iterator
> Affects Versions: 4.1
> Reporter: Matthew Knight
> Priority: Trivial
> Labels: signature
> Fix For: 5.0
>
>
> The {{IteratorUtils.pushbackIterator()}} signature currently says it returns {{java.util.Iterator}}, which requires casts or assumptions in order to make use of {{pushback()}} method.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)