[Soot-list] Equality of SootMethod

Steven Arzt Steven.Arzt at cased.de
Mon Jun 6 09:28:48 EDT 2016


There should actually only be one instance of every Soot method. The resolver checks whether the method is already resolved. If so, no new instance is generated.

 

Von: soot-list-bounces at CS.McGill.CA [mailto:soot-list-bounces at CS.McGill.CA] Im Auftrag von Denis Bogdanas
Gesendet: Samstag, 14. Mai 2016 03:54
An: Simone Aonzo
Cc: soot-list at CS.McGill.CA
Betreff: Re: [Soot-list] Equality of SootMethod

 

Actually my answer above is not right. I just encountered a new place where SootMethod is instantiated: inside SootMethodRefImpl.resolve().

I agree, an equals() would be highly useful.

 

On 12 May 2016 at 10:11, Denis Bogdanas <denis.bogdanas at gmail.com> wrote:

I believe Scene has only one instance of SootMethod for every method. Plain == is enough. You are not supposed to instantiate SootMethod by yourself.

 

On 12 May 2016 at 08:08, Simone Aonzo <simone.aonzo at gmail.com> wrote:

Hi all,

how can I check if two SootMethod are equals?

There isn't an equals override in the source:
https://github.com/Sable/soot/blob/develop/src/soot/SootMethod.java

Have a nice day,
Simone
_______________________________________________
Soot-list mailing list
Soot-list at CS.McGill.CA
https://mailman.CS.McGill.CA/mailman/listinfo/soot-list





-- 

Denis




-- 

Denis

-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://mailman.CS.McGill.CA/pipermail/soot-list/attachments/20160606/ba4c3a68/attachment.html 


More information about the Soot-list mailing list