[Soot-list] How to get field object in Jimple code?

Eric Bodden bodden at st.informatik.tu-darmstadt.de
Thu Apr 29 02:09:44 EDT 2010


> Probably, that is the reason: I note the following code:

Yes, Sai is correct. A method invocation can only take constants or
locals as parameters. That's one of the (intentional) constraints of
Jimple, to keep the Jimple language simple. You will therefore have to
assign the value of the field to a fresh local variable, and then pass
that local variable as argument to the method call. As an alternative
you can also just use a variable that is already assigned the same
value, such as $r1.

Hope that helps,
Eric


More information about the Soot-list mailing list