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/11 00:13:44 UTC

[jira] Resolved: (VELOCITY-625) Macro generates array bounds exception

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

Nathan Bubna resolved VELOCITY-625.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 1.6

> Macro generates array bounds exception
> --------------------------------------
>
>                 Key: VELOCITY-625
>                 URL: https://issues.apache.org/jira/browse/VELOCITY-625
>             Project: Velocity
>          Issue Type: Bug
>          Components: Engine
>    Affects Versions: 1.6
>            Reporter: Byron Foster
>             Fix For: 1.6
>
>
> The following VTL:
> #macro(test $a $b)#end #test("x")
> Generates the following exception:
> Threw: java.lang.ArrayIndexOutOfBoundsException
> msg: 1
> thrown at:  org.apache.velocity.runtime.parser.node.SimpleNode.jjtGetChild(SimpleNode.java:172)
>     org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:156)
>     org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:245)
>     org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:178)
>     org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:334)
>     org.apache.velocity.Template.merge(Template.java:328)
>     org.apache.velocity.Template.merge(Template.java:235)

-- 
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