杨国强
杨国强

Reputation: 1

Can soot deal with java files can not be compiled?

For example, in the CallGraphs.java file below, the doStuff1 function is not defined, so the file can not be compiled. When I use the command java -cp soot.jar soot.Main -cp .:soot.jar -pp -allow-phantom-refs -allow-phantom-elms -src-prec java CallGraphs, it throws soot.CompilationDeathException.

public class CallGraphs
{
    public static void main(String[] args) {
        doStuff1();
    }
    
    public static void doStuff() {
        new A().foo();
    }
}
 
class A
{
    public void foo() {
        bar();
    }
    
    public void bar() {
    }
}

Is there a way for soot to continue to analyse the file without throwing soot.CompilationDeathException? Moreover,if soot can not do this, is there a tool that can finish the task?

Upvotes: 0

Views: 50

Answers (0)

Related Questions