[Soot-list] Single quotation marks in Jimple method names

Cheng Zhang cheng.zhang.stap at gmail.com
Tue Mar 31 11:43:31 EDT 2015


Hi Steven,

Thank you so much for your quick reply!
I will deal with these reserved names in my code :)

Regards,
Cheng

On Tue, Mar 31, 2015 at 11:38 AM, Steven Arzt <Steven.Arzt at cased.de> wrote:

> Hi Cheng,
>
>
>
> This is intended behavior. Reserved names cannot be used as method names,
> field names, or class names. If we read in a file that contains such
> illegal names, we escape them using single quotes.
>
>
>
> Best regards,
>
>   Steven
>
>
>
> *Von:* soot-list-bounces at CS.McGill.CA [mailto:
> soot-list-bounces at CS.McGill.CA] *Im Auftrag von *Cheng Zhang
> *Gesendet:* Dienstag, 31. März 2015 17:36
> *An:* Soot-list at CS.McGill.CA
> *Betreff:* [Soot-list] Single quotation marks in Jimple method names
>
>
>
> Hi,
>
>
>
> I am using soot-infoflow to build call graphs for Java programs. When I
> was checking the resulting call graph edges, I found that method names in
> Jimple method signatures may be enclosed with single quotation marks.
>
>
>
> For example, in JodaTime, I observed a method signature as below:
>
>
>
>       <org.joda.time.Partial: org.joda.time.Partial
> 'with'(org.joda.time.DateTimeFieldType,int)>
>
>
>
> By searching in the GitHub repository of Soot, I find that "with" is
> probably a keyword used by Jimple, as indicated in the file below:
>
>
>
>
> https://github.com/Sable/soot/blob/2df9b853cb2ce548e07587a213262b64565360b7/src/jimple.scc
>
>
>
> I can try to work around this issue for my current task, since there are
> very limited number of methods with special names.
>
> But I am wondering whether it is a design of Jimple to have single
> quotation marks in special method names (or it may be something can be
> fixed).
>
>
>
> Thanks,
>
> Cheng
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://mailman.CS.McGill.CA/pipermail/soot-list/attachments/20150331/8c37542d/attachment.html 


More information about the Soot-list mailing list