You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Nathan Bubna (JIRA)" <de...@velocity.apache.org> on 2008/10/13 19:46:46 UTC
[jira] Resolved: (VELOCITY-627) #foreach exception reports wrong
line number
[ https://issues.apache.org/jira/browse/VELOCITY-627?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Nathan Bubna resolved VELOCITY-627.
-----------------------------------
Resolution: Fixed
Fix Version/s: 1.6
thanks, Byron!
> #foreach exception reports wrong line number
> --------------------------------------------
>
> Key: VELOCITY-627
> URL: https://issues.apache.org/jira/browse/VELOCITY-627
> Project: Velocity
> Issue Type: Bug
> Components: Engine
> Affects Versions: 1.6
> Reporter: Byron Foster
> Fix For: 1.6
>
> Attachments: fix627.patch
>
>
> With the velocity configuration property 'directive.foreach.skip.invalid' set to false, the following VTL:
> #set($x = "abc")
> #foreach($i in $x)
> blaa
> #end
> Creates the exception:
> Uberspect returned a null iterator for #foreach at /foo.vm [line 0, column 0]. $x (abc) is either of wrong type or has an invalid iterator() implementation
> Which contains the wrong line and column numbers.
--
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