[prev in list] [next in list] [prev in thread] [next in thread] 

List:       soot-list
Subject:    Re: [Soot-list] Equality of SootMethod
From:       Denis Bogdanas <denis.bogdanas () gmail ! com>
Date:       2016-05-14 1:54:04
Message-ID: CAD=3RU2C5mCkBYwbRN4f0EJbxnK=YaUSWygQ8ZmUF=yTCXHytQ () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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@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@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@CS.McGill.CA
>> https://mailman.CS.McGill.CA/mailman/listinfo/soot-list
>>
>
>
>
> --
> Denis
>



-- 
Denis

[Attachment #5 (text/html)]

<div dir="ltr"><div>Actually my answer above is not right. I just encountered a new \
place where SootMethod is instantiated: inside \
SootMethodRefImpl.resolve().<br><br></div>I agree, an equals() would be highly \
useful.<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On 12 May \
2016 at 10:11, Denis Bogdanas <span dir="ltr">&lt;<a \
href="mailto:denis.bogdanas@gmail.com" \
target="_blank">denis.bogdanas@gmail.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr">I believe Scene has only one instance of \
SootMethod for every method. Plain == is enough. You are not supposed to instantiate \
SootMethod by yourself.<br><br></div><div class="gmail_extra"><div><div \
class="h5"><br><div class="gmail_quote">On 12 May 2016 at 08:08, Simone Aonzo <span \
dir="ltr">&lt;<a href="mailto:simone.aonzo@gmail.com" \
target="_blank">simone.aonzo@gmail.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">Hi all,<br> <br>
how can I check if two SootMethod are equals?<br>
<br>
There isn&#39;t an equals override in the source:<br>
<a href="https://github.com/Sable/soot/blob/develop/src/soot/SootMethod.java" \
rel="noreferrer" target="_blank">https://github.com/Sable/soot/blob/develop/src/soot/SootMethod.java</a><br>
 <br>
Have a nice day,<br>
Simone<br>
_______________________________________________<br>
Soot-list mailing list<br>
<a href="mailto:Soot-list@CS.McGill.CA" \
target="_blank">Soot-list@CS.McGill.CA</a><br> <a \
href="https://mailman.CS.McGill.CA/mailman/listinfo/soot-list" rel="noreferrer" \
target="_blank">https://mailman.CS.McGill.CA/mailman/listinfo/soot-list</a><br> \
</blockquote></div><br><br clear="all"><br></div></div><span class="HOEnZb"><font \
color="#888888">-- <br><div><div dir="ltr">Denis<br></div></div> </font></span></div>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div \
dir="ltr">Denis<br></div></div> </div>



_______________________________________________
Soot-list mailing list
Soot-list@CS.McGill.CA
https://mailman.CS.McGill.CA/mailman/listinfo/soot-list


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic