Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » How to translate a java stack trace into an other language stack trace ?
How to translate a java stack trace into an other language stack trace ? [message #251621] Mon, 25 February 2008 08:51
François is currently offline FrançoisFriend
Messages: 21
Registered: July 2009
Junior Member
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
Previous Topic:Java3D
Next Topic:Open th JavaProjectWizard out of an other Wizard
Goto Forum:
  


Current Time: Thu Jul 25 06:17:08 GMT 2024

Powered by FUDForum. Page generated in 0.03280 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top