Hi,

I tried jacoco support of the plugin 0.10 in few of my library projects, 
but all of them fails most of the tests with java.lang.VerifyError 
exception when loading random instrumented classes. I managed to reduce one 
of the faulty class the minimum:

public class TestApi { 
    interface IRemote {
        public void test();
    }
   
    protected IRemote mRemote;

    public final void test() {
        getRemote().test();
    }

    private IRemote getRemote() {
        synchronized (this) {
            return mRemote;
        }
    }
}

I made a library project with just this class and a simple test that 
instantiate it. Verification fails with:

W/dalvikvm( 1050): VFY: invoke type does not match method type of 
Lcom/test/TestApi;.getRemote

W/dalvikvm( 1050): VFY:  rejecting opcode 0x6f at 0x0005

W/dalvikvm( 1050): VFY:  rejected Lcom/test/TestApi;.play ()V

W/dalvikvm( 1050): Verifier rejected class Lcom/test/TestApi;

Any other minor changes to TestApi class, like making the method 
getRemote() protected or removing the synchronised(this) solve this issue. 
I have the problem on the emulator and on a target. I'm using  the latest 
tools, and API 17.

-- 
You received this message because you are subscribed to the Google Groups 
"adt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to