[Soot-list] ActiveBody()

Eric Bodden eric.bodden at mail.mcgill.ca
Mon Jun 30 21:17:55 EDT 2008


If hasActiveBody() returns false then the method has no body - by
definition. Without seeing your code it's hard to tell what might be
the problem. I suspect that you SceneTransformer is executed at the
wrong time (while a BodyTransformer would be executed at the right
point in time).

Eric

2008/6/30  <esherman at cse.unl.edu>:
> Hi, Eric,
> I've created a class that extends SceneTransformer. In its
> internalTransform method, I iterate through classes and then through
> methods for each class. When I call hasActiveBody() method for a
> SootMethod, it would return false, even though that method does have body.
> When I perform the same operation in a class that extends BodyTransformer
> (except for the iterations), it returns true, i.e. the opposite.
>
> Elena
>
>
>
>> Hi Elena.
>>
>> Why do you think the body is empty?
>>
>> Eric
>>
>> 2008/6/30  <esherman at cse.unl.edu>:
>>> Why a class extending Scene Transformer would report that the active
>>> body
>>> of a method is empty, while it is not the case?
>>>
>>> Thank you,
>>> Elena Sherman
>>>
>>>
>>> _______________________________________________
>>> Soot-list mailing list
>>> Soot-list at sable.mcgill.ca
>>> http://mailman.cs.mcgill.ca/mailman/listinfo/soot-list
>>>
>>
>>
>>
>> --
>> Eric Bodden
>> Sable Research Group
>> McGill University, Montréal, Canada
>>
>
>
>



-- 
Eric Bodden
Sable Research Group
McGill University, Montréal, Canada


More information about the Soot-list mailing list