[Soot-list] Determine a field's main class
Vasco Pessanha
coreanu_ at hotmail.com
Tue Apr 26 12:09:27 EDT 2011
Hi,
I am using Soot to collect all the class fields accessed in a program. For each one, I keep the main class of the field and its name.
For instances, "<Pair, x>" refers to the field "x" of class "Pair".
The problem is, if I have an abstract class "A" that has a field "f", and another class "B" that extends "A", then I can have accesses to "f" in both classes. Therefore, since I am deducing the main class with the class where the access is made, we will generate "<A, f>" and "<B, f>" fields, despite they are the same.
Can anyone help me to determine which is the main class of a given field (JInstanceFieldRef)? In the previous case would be "A"..
Thanks,
Vasco Pessanha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.cs.mcgill.ca/pipermail/soot-list/attachments/20110426/c43c3a2c/attachment.html
More information about the Soot-list
mailing list