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

Byron Foster updated VELOCITY-627:
----------------------------------

    Attachment: fix627.patch

the patch is a fix for this problem, and actually it fixes the line and column 
number of all directives.  It also contains a TestCase.



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

Reply via email to