At 05:42 PM 4/12/2006, you wrote:
Why was parsing a stack trace felt to be unsafe?

Quoting from [1]:

Some virtual machines may, under some circumstances, omit one or more stack frames from the stack trace. In the extreme case, a virtual machine that has no stack trace information concerning this throwable is permitted to return a zero-length array from this method. Generally speaking, the array returned by this method will contain one element for every frame that would be printed by printStackTrace.


[1] http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Throwable.html#getStackTrace()


--
Ceki Gülcü

The complete log4j manual: http://www.qos.ch/log4j/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to