afs commented on issue #2195: URL: https://github.com/apache/jena/issues/2195#issuecomment-1892798174
> I guess the returned iterator isn't aware that toList() effectively consumes it so it isn't close()'d Looks that way. The code isn't seeing hasNext: true -> false nor is `hasNext` being called. `GraphTxn.toList` uses `ExtendedIterator.forEachRemaining` which in `WrappedIterator` call the wrapped class and so bypasses `hasNext`. For clarity - there is now a specific issue for this: https://github.com/apache/jena/issues/2197 -- 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]
