You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Robert Fuller (Updated) (JIRA)" <de...@velocity.apache.org> on 2012/03/15 17:55:39 UTC
[jira] [Updated] (VELOCITY-820) foreach support for Closeable
Iterator
[ 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: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org