[ 
https://issues.apache.org/jira/browse/VELOCITY-685?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12666877#action_12666877
 ] 

Byron Foster commented on VELOCITY-685:
---------------------------------------

Thanks for getting these fixed quickly

> BlockMacros fail with strict number of macro arguments
> ------------------------------------------------------
>
>                 Key: VELOCITY-685
>                 URL: https://issues.apache.org/jira/browse/VELOCITY-685
>             Project: Velocity
>          Issue Type: Bug
>          Components: Engine
>            Reporter: Byron Foster
>             Fix For: 1.7
>
>         Attachments: velocity-685.patch
>
>
> With 'velocimacro.arguments.strict = true' the following VTL:
> #macro(foo)#end
> #...@foo() junk #end
> Results in:
> Threw: class org.apache.velocity.exception.ParseErrorException
> Msg: VM #foo: too many arguments to macro. Wanted 0 got 1 at /foo.vm[line 2, 
> column 1]
> org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:283)
>  
> org.apache.velocity.runtime.directive.BlockMacro.render(BlockMacro.java:126) 
> org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:207)
>  
> org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342)
>  
> org.apache.velocity.Template.merge(Template.java:340) 
> org.apache.velocity.Template.merge(Template.java:248) 
> org.apache.velocity.app.Velocity.mergeTemplate(Velocity.java:343) 

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

Reply via email to