[Soot-list] Exception in thread "main" java.lang.ClassCastException: soot.coffi.CONSTANT_InterfaceMethodref_info cannot be cast to soot.coffi.CONSTANT_Methodref_info

Steven Arzt Steven.Arzt at cased.de
Tue Jun 3 09:59:52 EDT 2014


Hi Jason,

 

Please send the code with which you use Soot and the options with which you
configure Soot. Since you are analyzing an APK file, Soot should not be
using Coffi at all if I'm not mistaken.

 

Best regards,

  Steven

 

Von: soot-list-bounces at CS.McGill.CA [mailto:soot-list-bounces at CS.McGill.CA]
Im Auftrag von Jason Xie
Gesendet: Dienstag, 3. Juni 2014 15:46
An: Steven Arzt; Soot list
Betreff: [Soot-list] Exception in thread "main"
java.lang.ClassCastException: soot.coffi.CONSTANT_InterfaceMethodref_info
cannot be cast to soot.coffi.CONSTANT_Methodref_info

 

Dear Steven and All:

     when I want to get the CFG of apk, I encounter the the following
Exception:(Do some guys have the same problems?)

    Exception in thread "main" java.lang.ClassCastException:
soot.coffi.CONSTANT_InterfaceMethodref_info cannot be cast to
soot.coffi.CONSTANT_Methodref_info

            at soot.coffi.CFG.jimpleReturnTypeOfMethodRef(CFG.java:2488)

            at soot.coffi.CFG.processFlow(CFG.java:2315)

            at soot.coffi.CFG.jimplify(CFG.java:1119)

            at soot.coffi.CFG.jimplify(CFG.java:925)

            at
soot.coffi.CoffiMethodSource.getBody(CoffiMethodSource.java:100)

            at soot.SootMethod.getBodyFromMethodSource(SootMethod.java:89)

            at soot.SootMethod.retrieveActiveBody(SootMethod.java:322)

            at
soot.jimple.toolkits.callgraph.OnFlyCallGraphBuilder.processNewMethod(OnFlyC
allGraphBuilder.java:526)

            at
soot.jimple.toolkits.callgraph.OnFlyCallGraphBuilder.processReachables(OnFly
CallGraphBuilder.java:419)

            at
soot.jimple.toolkits.callgraph.CallGraphBuilder.build(CallGraphBuilder.java:
84)

            at
soot.jimple.toolkits.callgraph.CHATransformer.internalTransform(CHATransform
er.java:43)

            at soot.SceneTransformer.transform(SceneTransformer.java:39)

            at soot.Transform.apply(Transform.java:90)

            at soot.RadioScenePack.internalApply(RadioScenePack.java:57)

            at
soot.jimple.toolkits.callgraph.CallGraphPack.internalApply(CallGraphPack.jav
a:49)

            at soot.Pack.apply(Pack.java:116)

            at soot.PackManager.runWholeProgramPacks(PackManager.java:539)

            at soot.PackManager.runPacksNormally(PackManager.java:443)

            at soot.PackManager.runPacks(PackManager.java:388)

            at soot.Main.run(Main.java:203)

            at soot.Main.main(Main.java:146)

        Looking forward to your reply.

Thanks&Regards,

Jason

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.CS.McGill.CA/pipermail/soot-list/attachments/20140603/a66a84b6/attachment.html 


More information about the Soot-list mailing list