#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
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]