Re: [Freemarker-devel] Re: Freemarker infinite loops and StackOverflowError
Generates text that depends on changing data (like dynamic HTML).
Brought to you by:
revusky
From: Daniel D. <dd...@fr...> - 2005-05-17 21:09:30
|
Tuesday, May 17, 2005, 9:22:08 PM, Jonathan Revusky wrote: > Guillaume Berche wrote: >> Jonathan, >> >> Thanks for pointing out this simple way to enforce such a limit, this >> would indeed fit my need. The exception message could also potentially >> include a descriptive string constructed out of the elementStack List as >> to provide more detailed diagnostic than the stack trace: the stack >> trace only indicates the type of elements recursed and not their >> instance Id which allows to deduce the sort of "loop" that was >> potentially recursively executing. > > You might also be interested in customizing the outputInstructionStack() > method in the same class. > > You have the entire execution context at that moment available. You can > customize that method to output whatever information is useful to you. How the heck do you remember these after being away for so long? Maybe you have started to re-read the source code nowadays? > JR -- Best regards, Daniel Dekany |