You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Henning Schmiedehausen (JIRA)" <de...@velocity.apache.org> on 2007/03/08 01:04:32 UTC

[jira] Closed: (VELOCITY-108) Use of Velocimacro forward reference and/or recursion causes error messages

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

Henning Schmiedehausen closed VELOCITY-108.
-------------------------------------------


> Use of Velocimacro forward reference and/or recursion causes error messages
> ---------------------------------------------------------------------------
>
>                 Key: VELOCITY-108
>                 URL: https://issues.apache.org/jira/browse/VELOCITY-108
>             Project: Velocity
>          Issue Type: Bug
>          Components: Engine
>    Affects Versions: 1.3-rc1
>         Environment: Operating System: All
> Platform: All
>            Reporter: Daniel Rall
>             Fix For: 1.5
>
>         Attachments: TestVelocity.java
>
>
> I've confirmed that both forward referenced and recursed Velocimacros cause
> error messages in 1.3-rc1 and 1.3.1-rc2 (I assume the intervening versions are
> affected as well).  I have not (yet) tested 1.4-dev.
> The error message currently spouted by
> org.apache.velocity.runtime.directive.VelocimacroProxy does not differentiate
> between forward referencing and recursion (it is a very similar problem), and is
> not representitive of the problem.  It goes as follows:
>   2002-10-14 16:03:49,562 - VM #linkIf: error : too few arguments to macro.
> Wanted 3 got 0
> This issue can be reproduced through either of the following setups:
> a) Use the #linkIf macro in your VM_global_library.vm, then define it later on
> in the file.
> b) Define a #linkIf macro which calls itself recursively.
> The expected behavior is that Velocity will either provide a more accurate
> description of what it wants from the user, or allow forward referencing and
> recursion without error messages.  If not already in use, perhaps a multi-pass
> approach to dealing with Velocimacro libraries should be put in place to
> implement this.

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