How to translate a java stack trace into an other language stack trace ? [message #251621] |
Mon, 25 February 2008 03:51 |
Eclipse User |
|
|
|
Hello,
I compile a language into Java and postprocess the .class file to insert
the SourceDebugExtension attribute as described in JSR-045.
I know that this attribute is accessed within the java debugger to
retrieve the original source file.
But my question is on exceptions handling. Firstly it seams that
SourceDebugExtension information are not used to create the stack traces'
exception as reported there
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4972961.
Secondly, in a normal execution (not a debug execution), how should I do
to get the stack traces translated into my language ?
Work Around : Call java.lang.throwable.getStackTrace() and post-process
the results to reflect SourceDebugExtension
Yeah, but that's crap because I do not want to parse the
SourceDebugExtension info myself because I know that the mechanism exists
somewhere... I just do not want to rewrite some code.
Any comments on that ?
François
|
|
|
Powered by
FUDForum. Page generated in 0.03003 seconds