StackTraceElement support

Bryce McKinlay bryce@waitaki.otago.ac.nz
Mon Jul 22 21:07:00 GMT 2002


Mark Wielaard wrote:

>The following patch gives us real StackTraceElement support including
>printing of chained exceptions.
>

Great!

>I must say that parsing
>strings in C(++) is a challenge and I don't want to admit how long it
>took to get it all right or how many seg faults I created... 
>
OK, I'm curious - why didn't you do it in Java, using java.lang.Process 
to run addr2line and long[] to represent the raw stack trace? I guess 
there might be some complications in ensuring that the void *'s always 
convert correctly to longs and back, but it should still be simpler than 
the C++ version.

regards

Bryce.




More information about the Java-patches mailing list