[Soot-list] Possible bug in Pack transformations

Andy Maule a.maule at cs.ucl.ac.uk
Wed Mar 1 12:39:32 EST 2006


Thanks pat, that seems to solve my problem.

Andy 

-----Original Message-----
From: Patrick LAM [mailto:plam at sable.mcgill.ca] 
Sent: 01 March 2006 15:18
To: Andy Maule
Cc: soot-list
Subject: Re: [Soot-list] Possible bug in Pack transformations


On Wed, 1 Mar 2006, Andy Maule wrote:

> PackManager.v().getPack("jtp").add(
>         			new Transform("jtp.flowanalysis",
> FlowTransformer.v())
>         		);
>
> If FlowTransformer is derived from BodyTransformer, then everything 
> works ok, but I'm going to have to analyse each method in turn, and 
> build up my app that way. If FlowTransformer is derived from 
> SceneTransformer then a cast exception gets thrown, because it looks 
> like a body transformer is expected.

Try putting it in the wjtp.  SceneTransformers are the right things to use
for whole-program analyses, and they have to go into the whole-program
packs.

pat





More information about the Soot-list mailing list