[Soot-list] Line number information in class file

DIVYA IYER sirius.strider at gmail.com
Thu Nov 18 12:59:40 EST 2010


I had posted the problem regarding converting a jimple file to a class
file...
I read teh document below:
http://www.sable.mcgill.ca/soot/tutorial/tagclass/index.html

But on running the program I get the following exception:
SEVERE: Well, exception while processing statements of a method may mean the
processor does not recognize the given method or it's parts or method has
not stored in jimple representation. : <Main: long
runBenchmark(java.lang.String[])>
java.lang.ClassCastException: soot.baf.BafBody cannot be cast to
soot.jimple.JimpleBody
    at
edu.ksu.cis.indus.common.soot.AbstractStmtGraphFactory.getBodyForMethod(Unknown
Source)
    at
edu.ksu.cis.indus.common.soot.AbstractStmtGraphFactory.getStmtGraph(Unknown
Source)
    at
edu.ksu.cis.indus.processing.OneAllStmtSequenceRetriever.retrieveStmtSequences(Unknown
Source)
    at
edu.ksu.cis.indus.processing.ProcessingController.processMethodBody(Unknown
Source)
    at
edu.ksu.cis.indus.processing.ProcessingController.processMethods(Unknown
Source)
    at
edu.ksu.cis.indus.processing.ProcessingController.processClasses(Unknown
Source)
    at edu.ksu.cis.indus.processing.ProcessingController.process(Unknown
Source)
    at
edu.ksu.cis.indus.slicer.transformations.TagBasedDestructiveSliceResidualizer.residualizeSystem(Unknown
Source)
    at
edu.ksu.cis.indus.tools.slicer.SliceXMLizerCLI.destructivelyUpdateJimple(Unknown
Source)
    at edu.ksu.cis.indus.tools.slicer.SliceXMLizerCLI.residualize(Unknown
Source)
    at edu.ksu.cis.indus.tools.slicer.SliceXMLizerCLI.main(Unknown Source)

But the tutorial does say that baf body can be cast to jimple body.
Am I using the correct approach?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.cs.mcgill.ca/pipermail/soot-list/attachments/20101118/3dd9b14c/attachment.html 


More information about the Soot-list mailing list