Re: retaining the line Number

Rémi Forax <[email protected]>
Newsgroups gmane.comp.java.objectweb.asm
Message-ID <[email protected]>
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.