velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jochen Toppe" <joc...@jtoee.com>
Subject Re: RES: Question on recursion in macros
Date Tue, 05 Oct 2004 20:10:53 GMT

*snip*
> apparently works and the recursion in test macro works too, it causes a
> stack overflow
*snip*

Is there any way to limit the depth of the recursion (I can't find
anything)? StackOverflows are nasty especially if you let dumb users write
templates and they feel like they can crash you app.

#macro ( showInfo $p )
 Info: $p
 #showInfo($p)
#end
#showInfo("Test")

The same code also crashes in Intellij Idea when put in the file templates
(it used veloc) ;)

Cheers,
  Jochen




---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org


Mime
View raw message