[Soot-list] ***SPAM*** how to serialize an object of Stmt in soot

Khilan Gudka khilan at doc.ic.ac.uk
Tue Dec 29 11:52:59 EST 2009


Sorry, I should have elaborated.

When serialising an object in Java, all objects reachable from it are also
serialised (unless the reference is marked "transient"). An object of type
SootClass must be reachable from the Stmt instance and therefore needs to be
serialised too.

Khilan

2009/12/29 Khilan Gudka <khilan at doc.ic.ac.uk>

> Dear Ding Sun,
>
> The problem is that while Stmt does implement the Serializable interface,
> SootClass doesn't. One solution would be to make SootClass implement the
> Serializable interface.
>
> Khilan
>
> 2009/12/29 dingsun <xyz031702 at hotmail.com>
>
>>  Dear Sir/Madam
>>         I'm using soot to process some large systems. I plan to serialize
>> some objects of soot.jimple.Stmt and write them to hardisk to clear memory
>> space. However when doing the serialization, no matter what actually
>> the Stmt instance is(definitions stmt, ifstmt, invoke, etc.), the following
>> error message is given:
>> *java.io.NotSerializableException: soot.SootClass*
>>
>> I have checked the soot JavaDOC and found Stmt(
>> http://www.sable.mcgill.ca/soot/doc/soot/jimple/Stmt.html) has extended
>> the "Serializable" as super-class . So why the above exception will be
>> thrown out? Is there any solutions for this ?
>>
>> Urgently expecting any suggestions.
>> Thanks very much and best regards,
>> Sincerely, Ding Sun
>>
>> ------------------------------
>> 使用Messenger保护盾2.0,支持多账号登录! 现在就下载! <http://im.live.cn/safe/>
>>
>> _______________________________________________
>> Soot-list mailing list
>> Soot-list at sable.mcgill.ca
>> http://mailman.cs.mcgill.ca/mailman/listinfo/soot-list
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.cs.mcgill.ca/pipermail/soot-list/attachments/20091229/577f52b2/attachment.html 


More information about the Soot-list mailing list