Skip to content

Commit

Permalink
Fix #30
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Sep 15, 2017
1 parent 97d1fea commit 50d0f02
Show file tree
Hide file tree
Showing 4 changed files with 497 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,8 @@ private void _addSingleSetter(MethodVisitor mv,
// to fix [Issue-5] (don't assume return type is 'void'), we need to:
Type returnType = Type.getType(method.getReturnType());

boolean isInterface = method.getDeclaringClass().isInterface();
boolean isInterface = isInterfaceMethod(method);
method.getDeclaringClass().isInterface();
mv.visitMethodInsn(isInterface ? INVOKEINTERFACE : INVOKEVIRTUAL,
beanClassName, method.getName(), "("+type+")"+returnType, isInterface);
mv.visitInsn(RETURN);
Expand Down
Loading

0 comments on commit 50d0f02

Please sign in to comment.