afs commented on issue #1992: URL: https://github.com/apache/jena/issues/1992#issuecomment-1681907670
This is standard Java iterator behaviour. Any modification to an underlying datastructure may invalidate an iterator. Filtering is not a factor - the filter is navigation of the underlying datastructure. The same is true for JDK lists and maps. For example, in a HashMap, the whole hash vector maybe resized, moving everything around. If you want isolation, consume the iterator to a list and iterate on the list, or keep a record of the changes to make and make them afterwards. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
