The cost of stack traces
David Daney
ddaney@avtrex.com
Wed May 10 19:17:00 GMT 2006
gabriel.bianco@pixeon.com.br wrote:
> I actually don't need stack traces at all in some of my programs... What do I
> need to do to disable it completely?
>
You cannot disable generation of stack traces.
You can disable their display and decoding of line numbers by wrapping
your code in a try{}catch(){} block and ignoring all Throwables.
However, in my mind this would be bad programming style, but that's just me.
David Daney.
More information about the Java
mailing list