[
https://issues.apache.org/jira/browse/VELOCITY-443?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12533393
]
Nathan Bubna commented on VELOCITY-443:
---------------------------------------
Yeah, Geir had the same feedback on the list. I changed it to watch for this
and give a nice error message should it happen. See UberspectImpl:145-166 for
the latest implementation.
> Velocity 1.4 does not support Iterable collections.
> ---------------------------------------------------
>
> Key: VELOCITY-443
> URL: https://issues.apache.org/jira/browse/VELOCITY-443
> Project: Velocity
> Issue Type: Improvement
> Affects Versions: 1.4
> Environment: Java 5
> Reporter: Peter Lawrey
> Assignee: Nathan Bubna
> Priority: Minor
> Fix For: 1.6
>
>
> 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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]