[Soot-list] Soot and reflection

Ondrej Lhotak olhotak at uwaterloo.ca
Sat Mar 4 23:07:56 EST 2006


On Sat, Mar 04, 2006 at 03:26:11PM -0500, Eric Bodden wrote:
> Hello.
> 
> I am trying to optimize an application which uses reflection (i.e.
> dynamic class loading) in whole-jimple mode (i.e. with the -W flag). My
> question is if this is potentially unsound.
> 
> All the classes the program could potentially load are in my
> "process-dir", so they should be loaded by Soot. However, I assume that
> there will be no call edges to classes which are only dynamically
> loaded.

The options -dynamic-class, -dynamic-dir, and -dynamic-package are used
to inform Soot of classes which may be loaded dynamically. As long as
all dynamically-loaded classes are specified, the optimization should
handle them soundly.

> So how does Soot behave in such situations? Will the optimization still
> be sound in such a setting? 
> 
> Thanks,
> Eric
> 
> 
> --
> Eric Bodden
> Sable Research Group, McGill University
> Montreal, Canada 
> 
> _______________________________________________
> Soot-list mailing list
> Soot-list at sable.mcgill.ca
> http://mailman.cs.mcgill.ca/mailman/listinfo/soot-list
> 


More information about the Soot-list mailing list