[Soot-list] Soot as a rewriting tool - adding a method during body transformation
bodden at st.informatik.tu-darmstadt.de
Wed Oct 7 02:56:05 EDT 2009
I think the correct way to go about this is to:
1.) Enable whole-program mode (I know you don't like it).
2.) Disable all w* packs except the pack wjtp, which is empty by
default. (Set their phase option "enabled" to false.) Also disable the
cg pack. This should prevent Soot from running expensive whole-program
3.) Add a SceneTransformer to the wjtp pack and add the methods in there.
2009/10/6 David Mohr <dmohr at cs.unm.edu>:
> I'm trying to add a method to the current class in a BodyTransformer.
> But since the pack has an active iterator on the list of methods, this
> fails with a ConcurrentModificationException. Is there an easy way
> around this?
> As I mentioned before, I don't think I want to go into whole-program
> mode, since I only want to analyze some classes, and not all
> dependencies as well.
> Soot-list mailing list
> Soot-list at sable.mcgill.ca
Software Technology Group, Technische Universität Darmstadt, Germany
Tel: +49 6151 16-5478 Fax: +49 6151 16-5410
Mailing Address: S2|02 A209, Hochschulstraße 10, 64289 Darmstadt
More information about the Soot-list