Re: Re: retaining the line Number

Rajaraman Santhanam <[email protected]>
Newsgroups gmane.comp.java.objectweb.asm
Message-ID <12f495354a5.-6663789276893392065.2482454440773002297@zohocorp.com>
I'm yet to try it out in my project. 

What should be my implementation like to make sure the line numbers are retained. I modify the original bytecode of few classes(based on some rule) to insert a call to my method. However, when an exception occurs I want the user to see the actual line number as in his source file.

Thanks,
Rajaraman

---- On Fri, 08 Apr 2011 19:41:19 +0530 Rémi Forax &lt;[email protected]&gt; wrote ---- 


 On 04/08/2011 09:19 AM, Rajaraman Santhanam wrote:  Hi,
 
 
 When I transform a class is there a way to keep the current line numbers based on the original source intact? Post transformation, any exception trace printed that has the transformed class doesn't show the line number at all? 
 
 Anyone had done something make this work?
 
 
 Thanks,
 Rajaraman
 
 
  
 If you specify that your ClassReader should not SKIP_DEBUG in accept(),
 it will call MethodVisitor.visitLineNumber.
 
 Rémi
message-footer.txt (text/plain, 238 B)
-- 
You receive this message as a subscriber of the [email protected] mailing list.
To unsubscribe: mailto:[email protected]
For general help: mailto:[email protected]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.