You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Byron Foster (JIRA)" <de...@velocity.apache.org> on 2008/10/13 09:32:45 UTC

[jira] Updated: (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 ]

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