[prev in list] [next in list] [prev in thread] [next in thread] 

List:       velocity-dev
Subject:    [jira] Reopened: (VELOCITY-443) Velocity 1.4 does not support
From:       "Nathan Bubna (JIRA)" <dev () velocity ! apache ! org>
Date:       2007-09-25 17:59:51
Message-ID: 21558452.1190743191432.JavaMail.jira () brutus
[Download RAW message or body]


     [ https://issues.apache.org/jira/browse/VELOCITY-443?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel \
]

Nathan Bubna reopened VELOCITY-443:
-----------------------------------

      Assignee: Nathan Bubna  (was: Henning Schmiedehausen)

I see no reason not to simply support any object with an iterator() method.  Then we \
get Iterable support and more, without dependency on JDK 5 or requiring the user to \
use a different Uberspect.  It would also be completely backwards compatible and not \
affect performance of any previously functional templates.

> 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: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic