[
https://issues.apache.org/jira/browse/VELOCITY-820?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claude Brisson resolved VELOCITY-820.
-------------------------------------
Resolution: Fixed
Fix Version/s: 2.x
commited, with the additional precaution that if #foreach is given the iterator
itself, it shouldn't be closed
> 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
> Fix For: 2.x
>
> 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 was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]