<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
"http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title></title>
</head>
<body style="font-family:Arial;font-size:14px">
<p>Hi Steven,<br>
<br>
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).<br>
<br>
The reason why I am running it twice is that I am adding a different transform the second time.<br>
<br>
Best,<br>
Pallavi<br>
Quoting "Arzt, Steven" <<a href="mailto:steven.arzt@sit.fraunhofer.de">steven.arzt@sit.fraunhofer.de</a>>:</p>
<blockquote style="border-left:2px solid blue;margin-left:2px;padding-left:12px;" type="cite">
<div class="WordSection1">
<p class="MsoNormal"><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Hi Pallavi,</span></p>
<p> </p>
<p class="MsoNormal"> </p>
<p> </p>
<p> </p>
<p class="MsoNormal"><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>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?</span></p>
<p> </p>
<p class="MsoNormal"> </p>
<p> </p>
<p> </p>
<p class="MsoNormal"><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>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.</span></p>
<p> </p>
<p class="MsoNormal"> </p>
<p> </p>
<p> </p>
<p class="MsoNormal"><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Best regards,</span></p>
<p> </p>
<p class="MsoNormal"><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>  Steven</span></p>
<p> </p>
<p class="MsoNormal"> </p>
<p> </p>
<p> </p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style='font-size:11.0pt;font-family:"Calibri",sans-serif'>From:</span></b> <span style='font-size:11.0pt;font-family:"Calibri",sans-serif'>Soot-list [mailto:soot-list-bounces@cs.mcgill.ca] <b>On Behalf Of</b> Pallavi Majumder<br>
<b>Sent:</b> Thursday, March 9, 2017 11:49 AM<br>
<b>To:</b> soot-list@cs.mcgill.ca<br>
<b>Subject:</b> [Soot-list] Pack Manager and removing phase</span></p>
<p> </p>
</div>
</div>
<p class="MsoNormal"> </p>
<p> </p>
<p> </p>
<p><span style='font-size:10.5pt;font-family:"Arial",sans-serif'>Hello All,<br>
<br>
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.<br>
<br>
<em><span style='font-family:"Arial",sans-serif'>PackManager.v().getPack("jtp")</span></em></span></p>
<p> </p>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><em><span style='font-size:10.5pt;font-family:"Arial",sans-serif'>.add(new Transform("jtp.mainInstrumentation", classname));</span></em><br>
<br>
<span style='font-size:10.5pt;font-family:"Arial",sans-serif'>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.<br>
<br>
Just to make it clear, here is what I tried:</span></p>
<p> </p>
<div>
<p class="MsoNormal"><em><span style='font-size:10.5pt;font-family:"Arial",sans-serif'>PackManager.v().getPack("jtp")</span></em></p>
<p> </p>
</div>
<div>
<p class="MsoNormal"><em><span style='font-size:10.5pt;font-family:"Arial",sans-serif'>.add(new Transform("jtp.mainInstrumentation", new XMLConversion()));</span></em><br>
<i><span style='font-size:10.5pt;font-family:"Arial",sans-serif'><em><span style='font-family:"Arial",sans-serif'>PackManager.v().getPack("jtp").remove("jtp.mainInstrumentation");</span></em></span></i></p>
<p> </p>
<div>
<p class="MsoNormal"><em><span style='font-size:10.5pt;font-family:"Arial",sans-serif'>PackManager.v().getPack("jtp")</span></em></p>
<p> </p>
</div>
<div>
<p class="MsoNormal"><em><span style='font-size:10.5pt;font-family:"Arial",sans-serif'>.add(new Transform("jtp.xmlInstrumentation", new XMLConversion()));</span></em></p>
<p> </p>
</div>
</div>
</div>
<p><br>
<span style='font-size:10.5pt;font-family:"Arial",sans-serif'>jtp.mainInstrumentation works fine, but jtp.xmlInstrumentation does not work here. However , if I execute them individually, I get perfect results.<br>
<br>
Please note that I want them to use "jtp" and not "wjtp" or any other packs.<br>
<br>
I would really appreciate if anyone has an idea why this happens in PackManager.<br>
<br>
Thanks,<br>
Pallavi</span></p>
<p> </p>
</div>
</blockquote>
<p><br>
<br></p>
</body>
</html>