Uploaded image for project: 'Velocity'
  1. Velocity
  2. VELOCITY-820

foreach support for Closeable Iterator

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.0
    • Engine
    • None

    Description

      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.

      Attachments

        1. foreach.diff
          0.9 kB
          Robert Fuller

        Activity

          People

            Unassigned Unassigned
            fullergalway Robert Fuller
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: