[Soot-list] Getting Exception in thread "main" java.lang.ClassCastException: soot.baf.internal.BIdentityInst cannot be cast to soot.jimple.Stmt

Saswat Anand saswat78 at gmail.com
Sat Apr 27 13:15:15 EDT 2013


Before class files are output, the default soot driver (i.e., soot.Main)
converts jimple body to baf body. Look for convertToBaf method call in
PackManager class. I would guess you are using your own driver, which is
doing this conversion.

Saswat
On Apr 27, 2013 6:14 AM, "ASHISH MISHRA" <ashish123.mishragkp at gmail.com>
wrote:

> Hi All,
> I am trying to perform some instrumentation on Method bodies, I am
> extending the jtp phase for the same, The system runs fine if I provide "-f
> Jimple" as the output option. But, I get the following Exception when
> remove -f jimple and try getting .class output.
> *
> *
> *Exception in thread "main" java.lang.ClassCastException:
> soot.baf.internal.BIdentityInst cannot be cast to soot.jimple.Stmt*
>
> I assume there is some problem in conversion from Baf to jimple , Can any
> one please give some probable cause of the problem and some solution.
> Thanks in Advance
>
>
>
>
> --
> Regards,
> Ashish Mishra
> Graduate Student,
> Computer Science and Automation Department,IISc
> Cell : +91-9611194714
> Mailto : ashishmishra at csa.iisc.ernet.in
>
>
> _______________________________________________
> 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/20130427/6f1d21b0/attachment.html 


More information about the Soot-list mailing list