incubator-jena-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonathan Randolph (JIRA)" <>
Subject [jira] [Commented] (JENA-60) NiceIterator.andThen: remove() has minor bug
Date Mon, 18 Apr 2011 19:44:05 GMT


Yonathan Randolph commented on JENA-60:

I realized that for some iterators like FilterITerator it is impossible to call remove() after
hasNext(), so I guess I shouldn't expect andThen to work when you call them in the wrong order

> NiceIterator.andThen: remove() has minor bug
> --------------------------------------------
>                 Key: JENA-60
>                 URL:
>             Project: Jena
>          Issue Type: Bug
>            Reporter: Andy Seaborne
>            Assignee: christopher james dollin
> 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.
For more information on JIRA, see:

View raw message