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

List:       soot-list
Subject:    Re: [Soot-list] Getting Exception in thread "main" java.lang.ClassCastException: soot.baf.internal.B
From:       Saswat Anand <saswat78 () gmail ! com>
Date:       2013-04-27 17:15:15
Message-ID: CAOYk=pJp3cAAODK-kTa8wcPDBumEPQ6ta9F=pza9ZjFS4hPTGA () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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@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@csa.iisc.ernet.in
>
>
> _______________________________________________
> Soot-list mailing list
> Soot-list@sable.mcgill.ca
> http://mailman.cs.mcgill.ca/mailman/listinfo/soot-list
>
>

[Attachment #5 (text/html)]

<p>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.</p>

<p>Saswat</p>
<div class="gmail_quote">On Apr 27, 2013 6:14 AM, &quot;ASHISH MISHRA&quot; &lt;<a \
href="mailto:ashish123.mishragkp@gmail.com">ashish123.mishragkp@gmail.com</a>&gt; \
wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 \
.8ex;border-left:1px #ccc solid;padding-left:1ex"> <div dir="ltr">Hi All,<div>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 &quot;-f Jimple&quot; as the output \
option. But, I get the following Exception when remove -f jimple and try getting \
.class output.</div>

<div><b><br></b></div><div><b>Exception in thread &quot;main&quot; \
java.lang.ClassCastException: soot.baf.internal.BIdentityInst cannot be cast to \
soot.jimple.Stmt</b> </div><div><br></div><div>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.</div>

<div>Thanks in Advance </div><div><br></div><div><br></div><div><br \
clear="all"><div><br></div>-- <br>Regards,<br>Ashish Mishra<br>Graduate \
Student,<br>Computer Science and Automation Department,IISc<br> Cell : <a \
href="tel:%2B91-9611194714" value="+919611194714" \
target="_blank">+91-9611194714</a><br>Mailto : <a \
href="mailto:ashishmishra@csa.iisc.ernet.in" \
target="_blank">ashishmishra@csa.iisc.ernet.in</a><br><br> </div></div>
<br>_______________________________________________<br>
Soot-list mailing list<br>
<a href="mailto:Soot-list@sable.mcgill.ca">Soot-list@sable.mcgill.ca</a><br>
<a href="http://mailman.cs.mcgill.ca/mailman/listinfo/soot-list" \
target="_blank">http://mailman.cs.mcgill.ca/mailman/listinfo/soot-list</a><br> \
<br></blockquote></div>



_______________________________________________
Soot-list mailing list
Soot-list@sable.mcgill.ca
http://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