Locations are generated by the javac compiler and more specifically are defined in the java class file format.
See:
http://java.sun.com/docs/books/vmspec/2nd-edition/html/ClassFile.doc.html#22856

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.

==dave
----- Original Message ----- From: "Lajos Németh" <L.B.Ne'[EMAIL PROTECTED]>
To: <[email protected]>
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to