You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Claude Brisson (JIRA)" <ji...@apache.org> on 2016/07/17 13:15:20 UTC
[jira] [Resolved] (VELOCITY-820) foreach support for Closeable
Iterator
[ 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: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org