[Soot-list] java.lang.RuntimeException: cannot set body for non-concrete method!

Eric Bodden eric.bodden at ec-spride.de
Mon Jan 21 12:05:42 EST 2013


Hello.

The method looks as follows:

    private void processNewMethod( SootMethod m ) {
        if( m.isNative() || m.isPhantom() ) {
            return;
        }
        Body b = m.retrieveActiveBody();
        getImplicitTargets( m );
        findReceivers(m, b);
    }

I think that the check above is correct because "m" in this particular
setting should usually always be a concrete method. If it is not then
something odd has happened before. I also suspect a problem with
phantom refs.

Could you try the approach that Andrea suggested to see if that helps?

Cheers,
Eric


More information about the Soot-list mailing list