[Soot-list] Creating a class from scratch with diamond operator

Umar Farooq ufaro001 at ucr.edu
Thu Oct 31 18:17:34 EDT 2019


Hi Eric,

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(https://github.com/Sable/soot/issues/1225#issuecomment-548586119).


Bests,
Umar

On Thu, Oct 31, 2019 at 2:22 AM Eric Bodden <eric.bodden at uni-paderborn.de>
wrote:

> Hi Umar.
>
> SootClasses cannot have type parameters. This is because in bytecode they
> do not exist either.
>
> Best wishes
>
> Eric
>
> --
> Sent from my mobile
> ------------------------------
> *Von:* Umar Farooq <ufaro001 at ucr.edu>
> *Gesendet:* Donnerstag, 31. Oktober 2019 05:50
> *An:* soot-list at CS.McGill.CA
> *Betreff:* [Soot-list] Creating a class from scratch with diamond
> operator
>
> Hi,
>
> 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(
> <T>) operator. The class should look like this if we were writing in java.
>
> public class MyClassType extends TypeToken<MyClass> {
>
> }
>
> I can see setSuperclass API for SootClass, but I could not find any
> option to specify the type parameter.
>
> Any idea about this?
>
> Bests,
> --
> Umar Farooq
> Ph.D. Candidate, Computer Science & Engineering
> University of California, Riverside
> http://www.cs.ucr.edu/~ufaro001/
>


-- 
Umar Farooq
PhD Candidate
Computer Science & Engineering
University of California, Riverside
http://www.cs.ucr.edu/~ufaro001/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.CS.McGill.CA/pipermail/soot-list/attachments/20191031/4511b102/attachment.html>


More information about the Soot-list mailing list