[Soot-list] Pack Manager and removing phase
Pallavi Majumder
s8pamaju at stud.uni-saarland.de
Thu Mar 9 07:11:26 EST 2017
Hi Steven,
The stack trace is correct. What I am basically doing is instrumenting
my code, if I run the Pack Managers together the output instrumented
code is blank(null).
The reason why I am running it twice is that I am adding a different
transform the second time.
Best,
Pallavi
Quoting "Arzt, Steven" <steven.arzt at sit.fraunhofer.de>:
> Hi Pallavi,
>
>
>
>
>
>
>
>
>
> To understand what happens here, I would need a lot more detail.
> What do you mean by “null result”? Is there some exception? What is
> the stack trace?
>
>
>
>
>
>
>
>
>
> Secondly, why do you attempt to run the PackManager twice at all?
> This is not the intended use of the PackManager and I don’t really
> see a reason why this should be necessary.
>
>
>
>
>
>
>
>
>
> Best regards,
>
>
>
> Steven
>
>
>
>
>
>
>
>
>
> FROM: Soot-list [mailto:soot-list-bounces at cs.mcgill.ca] ON
> BEHALF OF Pallavi Majumder
> SENT: Thursday, March 9, 2017 11:49 AM
> TO: soot-list at cs.mcgill.ca
> SUBJECT: [Soot-list] Pack Manager and removing phase
>
>
>
>
>
>
>
>
>
> Hello All,
>
> I execute, the following code twice. Each time for different
> classname. However, when I execute them in the same program run the
> result of the second transform is incorrect.
>
> /PackManager.v().getPack("jtp")/
>
>
>
> /.add(new Transform("jtp.mainInstrumentation", classname));/
>
> When I execute the PackManager twice in 2 different program runs,
> everything works fine but executing them together creates a null
> result. I tried to remove the particular phase name before the
> second execution, but that does not help.
>
> Just to make it clear, here is what I tried:
>
>
>
> /PackManager.v().getPack("jtp")/
>
>
>
>
> /.add(new Transform("jtp.mainInstrumentation", new XMLConversion()));/
> //PackManager.v().getPack("jtp").remove("jtp.mainInstrumentation");//
>
>
>
> /PackManager.v().getPack("jtp")/
>
>
>
>
> /.add(new Transform("jtp.xmlInstrumentation", new XMLConversion()));/
>
>
>
>
> jtp.mainInstrumentation works fine, but jtp.xmlInstrumentation does
> not work here. However , if I execute them individually, I get
> perfect results.
>
> Please note that I want them to use "jtp" and not "wjtp" or any other packs.
>
> I would really appreciate if anyone has an idea why this happens in
> PackManager.
>
> Thanks,
> Pallavi
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.CS.McGill.CA/pipermail/soot-list/attachments/20170309/2d03ef96/attachment-0001.html>
More information about the Soot-list
mailing list