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

Bernhard Berger berber at tzi.de
Tue Mar 31 12:06:29 EDT 2015


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 <mailto: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 <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 <mailto: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 <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/701d8518/attachment.html 


More information about the Soot-list mailing list