[Soot-list] VerifyError while instrumenting with Chain.insertBefore() method.

Patrick Lam plam at cs.mcgill.ca
Wed Jun 16 00:57:27 EDT 2010


On 06/16/10 00:43, Neetha Maria Sebastian wrote:
> I did not intend to limit my arguments to bytes / booleans, but yes it
> does appear that this is what I end up doing. myIfBefore expects an
> integer and an Object. The method signature is :
>
> public static void myIfBefore(int iid, Object parameter);

You'll have to convert your non-object parameters into Objects somehow. 
You might consider how newer versions of Java do it automatically 
(autoboxing), but you would have to implement it yourself. Clearly the 
VM ought to complain if it sees a method which expects an "Object" and 
gets a "byte".

pat


More information about the Soot-list mailing list