Sergiu Dumitriu created VELOCITY-871: ----------------------------------------
Summary: #foreach should work over any Iterable class Key: VELOCITY-871 URL: https://issues.apache.org/jira/browse/VELOCITY-871 Project: Velocity Issue Type: Improvement Components: Engine Affects Versions: 1.7 Reporter: Sergiu Dumitriu Assignee: Sergiu Dumitriu Fix For: 1.7.1 The current code was written before Java 1.5 added the {{Iterable}} class, so it tries to partially add support for it by invoking the {{iterator}} method through reflection, but this doesn't work for inaccessible classes (see VELOCITY-870). Since 1.7 requires Java 1.5, we can check if the target object implements {{Iterable}} directly. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@velocity.apache.org For additional commands, e-mail: dev-h...@velocity.apache.org