[
https://issues.apache.org/jira/browse/VELOCITY-820?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Robert Fuller updated VELOCITY-820:
-----------------------------------
Attachment: foreach.diff
example implementation attached.
> foreach support for Closeable Iterator
> --------------------------------------
>
> Key: VELOCITY-820
> URL: https://issues.apache.org/jira/browse/VELOCITY-820
> Project: Velocity
> Issue Type: Improvement
> Components: Engine
> Reporter: Robert Fuller
> Priority: Minor
> Attachments: foreach.diff
>
>
> would be nice if #foreach would do close the iterator if it implements
> Closeable. This will allow better resource management when using foreach to
> do things like run sql queries, etc.
--
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
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]