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

Cheng Zhang cheng.zhang.stap at gmail.com
Tue Mar 31 12:14:56 EDT 2015


Hi Bernhard,

Thanks a lot for your suggestion! I actually found your discussion in the
mailing list:


https://mailman.cs.mcgill.ca/pipermail/soot-list/2012-October/004858.html

I will be careful with these issues:)

Regards,
Cheng

On Tue, Mar 31, 2015 at 12:06 PM, Bernhard Berger <berber at tzi.de> wrote:

> Hi  Cheng,
>
> beside of reserved names there are many other possible class names that
> are valid in Java Bytecode that are not valid in Java or Jimple. For
> instance you can have class or package names including a -.
>
> Regards,
> Bernhard
>
> Am 31.03.2015 um 17:43 schrieb Cheng Zhang <cheng.zhang.stap at gmail.com>:
>
> 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 <http://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
>>
>>
>>
>
> _______________________________________________
> Soot-list mailing list
> Soot-list at CS.McGill.CA
> https://mailman.CS.McGill.CA/mailman/listinfo/soot-list
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://mailman.CS.McGill.CA/pipermail/soot-list/attachments/20150331/6bae9a7f/attachment.html 


More information about the Soot-list mailing list