jakarta-bcel-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dave Brosius" <dbros...@apache.org>
Subject Re: locate branch position in the source line
Date Wed, 12 Jul 2006 02:44:57 GMT
Locations are generated by the javac compiler and more specifically are 
defined in the java class file format.

The current class file format only specifies line numbers not columns within 
lines, so BCEL can't help you there.
Your only choice is to build or use a decompiler, or at least the logic from 
one, and figure the section through that knowledge.

----- Original Message ----- 
From: "Lajos NĂ©meth" <L.B.Ne'meth@kent.ac.uk>
To: <bcel-user@jakarta.apache.org>
Sent: Tuesday, July 11, 2006 9:15 AM
Subject: locate branch position in the source line

> Hi everyone,
> I'm developping a code coverage tool with BCEL, and I have problem with
> branches. I need to know which branch how many times have been executed,
> which is clear, but I'd like to mark only the corresponding part of the
> source line, not the whole.
> Is there any possibility with BCEL without manipulating the source code?
> Regards,
> Lajos

To unsubscribe, e-mail: bcel-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: bcel-user-help@jakarta.apache.org

View raw message