from BCEL line back to source
Anton Margoline <[email protected]> Sat, 19 Dec 2009 20:24:25 -0500
| Newsgroups | gmane.comp.jakarta.bcel.user |
|---|---|
| Message-ID | <[email protected]> |
--001517448318618a78047b1ed565
Content-Type: text/plain; charset=ISO-8859-1
Is there a good way to catch assignments to specific value in code?
public void testB() {
*boolean o = !true;*
}
translates to
boolean a = !false;
public testB() : void
L0 (0)
*LINENUMBER 32 L0
ICONST_0
ISTORE 1: o*
L1 (3)
LINENUMBER 33 L1
RETURN
L2 (5)
LOCALVARIABLE this TestDoubleNegative L0 L2 0
LOCALVARIABLE o boolean L1 L2 1
MAXSTACK = 1
MAXLOCALS = 2
I am particularly interested in getting from ICONST_0 to assignment of*!true
*. Let me know if anyone has an idea how to do this.
Thanks in Advance!
--001517448318618a78047b1ed565--