[
https://issues.apache.org/jira/browse/JENA-60?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Stephen Allen updated JENA-60:
------------------------------
Attachment: JENA-60-ARQ-r1186421.patch
JENA-60-Jena-r1186412.patch
Attached patchs with tests to fix this issue in both Jena and ARQ (they both
have concat iterators that support .remove()).
> NiceIterator.andThen: remove() has minor bug
> --------------------------------------------
>
> Key: JENA-60
> URL: https://issues.apache.org/jira/browse/JENA-60
> Project: Jena
> Issue Type: Bug
> Reporter: Andy Seaborne
> Assignee: christopher james dollin
> Attachments: JENA-60-ARQ-r1186421.patch, JENA-60-Jena-r1186412.patch
>
>
> regarding com.hp.hpl.jena.util.iterator.NiceIterator:
> If you have a NiceIterator and you do andThen and call
> it.hasNext();
> it.remove();
> it can try to remove() from the wrong underlying iterator. Remove should call
> remove() on the iterator that returned the previous next(), not current.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira