<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Hi Eric,</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Thanks for the reply, I think bytecode includes such information. When I use "javap" it shows the type parameter information, I have added details on Github(<a href="https://github.com/Sable/soot/issues/1225#issuecomment-548586119">https://github.com/Sable/soot/issues/1225#issuecomment-548586119</a>). </div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Bests,</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Umar</div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Oct 31, 2019 at 2:22 AM Eric Bodden <<a href="mailto:eric.bodden@uni-paderborn.de">eric.bodden@uni-paderborn.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<div>
<div id="gmail-m_793609822814059845d_1572513741516" style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(31,73,125)">
<p dir="ltr" style="margin-top:0px;margin-bottom:0px">Hi Umar.</p>
<br>
<p dir="ltr" style="margin-top:0px;margin-bottom:0px">SootClasses cannot have type parameters. This is because in bytecode they do not exist either.</p>
<br>
<p dir="ltr" style="margin-top:0px;margin-bottom:0px">Best wishes</p>
<p dir="ltr" style="margin-top:0px;margin-bottom:0px">Eric</p>
<br>
<div id="gmail-m_793609822814059845signature-x" style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(31,73,125)">
--<br>
Sent from my mobile<br>
</div>
</div>
<div id="gmail-m_793609822814059845quoted_header" style="clear:both">
<hr style="border:none;height:1px;color:rgb(225,225,225);background-color:rgb(225,225,225)">
<div style="border:none;padding:3pt 0cm 0cm"><span style="font-size:11pt;font-family:Calibri,sans-serif"><b>Von:</b> Umar Farooq <<a href="mailto:ufaro001@ucr.edu" target="_blank">ufaro001@ucr.edu</a>><br>
<b>Gesendet:</b> Donnerstag, 31. Oktober 2019 05:50<br>
<b>An:</b> <a href="mailto:soot-list@CS.McGill.CA" target="_blank">soot-list@CS.McGill.CA</a><br>
<b>Betreff:</b> [Soot-list] Creating a class from scratch with diamond operator <br>
</span></div>
</div>
<br type="attribution">
<div>
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div class="gmail_default" style="font-family:arial,helvetica,sans-serif">
<p style="margin-bottom:16px;color:rgb(36,41,46);font-size:14px;margin-top:0px">
Hi,</p>
<p style="margin-top:0px;margin-bottom:16px;color:rgb(36,41,46);font-size:14px">
I am trying to create a class from scratch using jimple APIs, the class should extend a superclass by specifying a type parameter using a diamond(<code style="font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:11.899999618530273px;padding:0.2em 0.4em;margin:0px"><T></code>)
operator. The class should look like this if we were writing in java.</p>
<div style="margin-bottom:16px;color:rgb(36,41,46);font-size:14px;overflow:visible">
<pre style="font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:11.899999618530273px;margin-top:0px;margin-bottom:0px;word-wrap:normal;padding:16px;overflow:auto;line-height:1.45;background-color:rgb(246,248,250);word-break:normal"><span style="color:rgb(215,58,73)">public</span> <span style="color:rgb(215,58,73)">class</span> <span style="color:rgb(111,66,193)">MyClassType</span> <span style="color:rgb(215,58,73)">extends</span> <span style="color:rgb(111,66,193)">TypeToken<<span style="color:rgb(36,41,46)">MyClass</span>></span> {
}</pre>
</div>
<p style="margin-top:0px;margin-bottom:16px;color:rgb(36,41,46);font-size:14px">
I can see <code style="font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:11.899999618530273px;padding:0.2em 0.4em;margin:0px">setSuperclass</code> API for <code style="font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:11.899999618530273px;padding:0.2em 0.4em;margin:0px">SootClass</code>,
but I could not find any option to specify the type parameter.</p>
<p style="margin-top:0px;margin-bottom:16px;color:rgb(36,41,46);font-size:14px">
Any idea about this?</p>
<p style="margin-top:0px;color:rgb(36,41,46);font-size:14px;margin-bottom:0px">
Bests,</p>
</div>
-- <br>
<div dir="ltr">
<div dir="ltr">
<div><font color="#000000">Umar Farooq</font></div>
<div><font color="#000000">Ph.D. Candidate,<span class="gmail_default" style="font-family:arial,helvetica,sans-serif"> </span></font><span style="color:rgb(0,0,0)">Computer Science & Engineering</span></div>
<div><font color="#000000">University of California, Riverside</font></div>
<div style="color:rgb(136,136,136)"><a href="http://www.cs.ucr.edu/~ufaro001/" target="_blank">http://www.cs.ucr.edu/~ufaro001/</a> <br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><font color="#000000">Umar Farooq</font></div><div><font color="#000000">PhD Candidate </font></div><div><font color="#000000">Computer Science & Engineering</font></div><div><font color="#000000">University of California, Riverside</font></div><div style="color:rgb(136,136,136)"><a href="http://www.cs.ucr.edu/~ufaro001/" target="_blank">http://www.cs.ucr.edu/~ufaro001/</a> <br></div></div></div>