greyblue9 / dexmaker

Automatically exported from code.google.com/p/dexmaker
1 stars 0 forks source link

AbstractMethodError: abstract method not implemented ProxiedMethod.isAbstract #43

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago

    java.lang.AbstractMethodError: abstract method not implemented
            at com.google.dexmaker.mockito.InvocationHandlerAdapter$ProxiedMethod.isAbstract(InvocationHandlerAdapter.java)
            at org.mockito.internal.invocation.InvocationImpl.callRealMethod(InvocationImpl.java:109)
            at org.mockito.internal.stubbing.answers.CallsRealMethods.answer(CallsRealMethods.java:41)
            at org.mockito.internal.handler.MockHandlerImpl.handle(MockHandlerImpl.java:93)
            at org.mockito.internal.handler.NullResultGuardian.handle(NullResultGuardian.java:29)
            at org.mockito.internal.handler.InvocationNotifierHandler.handle(InvocationNotifierHandler.java:38)
            at com.google.dexmaker.mockito.InvocationHandlerAdapter.invoke(InvocationHandlerAdapter.java:49)

This is using mockito 1.10.17 with dexmaker 1.2.

Looks like it might be related to this mockito change:

https://github.com/mockito/mockito/commit/f7929968c7ca33cd53acd740975825866b03e8
4e

Original issue reported on code.google.com by YogurtE...@gmail.com on 18 Dec 2014 at 10:25

GoogleCodeExporter commented 8 years ago
Yes, it looks like the implementation of isAbstract() is missing.  

Original comment by frin...@gmail.com on 13 Apr 2015 at 5:20

GoogleCodeExporter commented 8 years ago
The fix for this particular error looks simple; implement 
MockitoMethod.isAbstract(), check the modifiers on the method and see if it is 
abstract or not. Dexmaker is chiefly pinned to Mockito 1.9.5 though, so I'm not 
what other implications there are for bumping to at least the latest 1.+ 
version of Mockito are.  Also, 2.0+ is currently under heavy development, so 
there will be more changes coming soon.

Original comment by james.ki...@gmail.com on 3 May 2015 at 4:05

GoogleCodeExporter commented 8 years ago
I created a pull request for this as a potential fix: 
https://github.com/crittercism/dexmaker/pull/14

Original comment by james.ki...@gmail.com on 4 May 2015 at 12:06