[Soot-list] PackManager.writeOutput() and using Soot classes outside soot.Main

Joe Roback robackja at cs.arizona.edu
Fri Dec 5 18:49:03 EST 2008


So the real problem with using SootClasses outside soot.Main() is when
PackManager.writeOutput() is called. PackManager.java, line 394:

releaseBodies( reachableClasses() ); which in turn calls
m.releaseActiveBody() on each SootMethod... Which set's the activeBody
= null for all methods. This makes using these classes after soot.Main
impossible, since they have no active bodies. Soot is exiting, is
there any reason to set the activeBodies to null? Is there some soot
option I can use to prevent this?

thanks.


More information about the Soot-list mailing list