Velocity
  1. Velocity
  2. VELOCITY-443

Velocity 1.4 does not support Iterable collections.

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.4
    • Fix Version/s: 1.6
    • Component/s: None
    • Labels:
      None
    • Environment:
      Java 5

      Description

      In the new for loop in Java 5 e.g.

      for(Object obj: iterable)

      the collection iterated only needs to be of type Iterable

      However, In Velocity a foreach loop must be either a Collection or a Map but cannot be just an Iterable.

      Suggestion, support Iterable containers.

        Activity

        Peter Lawrey created issue -
        Henning Schmiedehausen made changes -
        Field Original Value New Value
        Assignee Henning Schmiedehausen [ henning ]
        Henning Schmiedehausen made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Henning Schmiedehausen made changes -
        Fix Version/s 1.6 [ 12310290 ]
        Status In Progress [ 3 ] Resolved [ 5 ]
        Resolution Later [ 7 ]
        Henning Schmiedehausen made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Nathan Bubna made changes -
        Assignee Henning Schmiedehausen [ henning ] Nathan Bubna [ nbubna ]
        Resolution Later [ 7 ]
        Status Closed [ 6 ] Reopened [ 4 ]
        Nathan Bubna made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Mark Thomas made changes -
        Workflow jira [ 12373631 ] Default workflow, editable Closed status [ 12551513 ]
        Mark Thomas made changes -
        Workflow Default workflow, editable Closed status [ 12551513 ] jira [ 12552389 ]

          People

          • Assignee:
            Nathan Bubna
            Reporter:
            Peter Lawrey
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development