Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ private <T extends OptimizedSettableBeanProperty<T>> void _addSettersUsingIf(Met
// 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);
mv.visitMethodInsn(isInterface ? INVOKEINTERFACE : INVOKEVIRTUAL,
beanClassName, method.getName(), "("+type+")"+returnType, isInterface);
mv.visitInsn(RETURN);
Expand All @@ -318,7 +318,7 @@ private <T extends OptimizedSettableBeanProperty<T>> void _addSettersUsingIf(Met
if (mustCast) {
mv.visitTypeInsn(CHECKCAST, type.getInternalName());
}
isInterface = method.getDeclaringClass().isInterface();
isInterface = isInterfaceMethod(method);
mv.visitMethodInsn(isInterface ? INVOKEINTERFACE : INVOKEVIRTUAL,
beanClassName, method.getName(), "("+type+")"+returnType, isInterface);
mv.visitInsn(RETURN);
Expand Down Expand Up @@ -348,7 +348,7 @@ private <T extends OptimizedSettableBeanProperty<T>> void _addSettersUsingSwitch
if (mustCast) {
mv.visitTypeInsn(CHECKCAST, type.getInternalName());
}
boolean isInterface = method.getDeclaringClass().isInterface();
boolean isInterface = isInterfaceMethod(method);
mv.visitMethodInsn(isInterface ? INVOKEINTERFACE : INVOKEVIRTUAL,
beanClassName, method.getName(), "("+type+")"+returnType, isInterface);
mv.visitInsn(RETURN);
Expand Down
4 changes: 4 additions & 0 deletions release-notes/VERSION-2.x
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ Active maintainers:
=== Releases ===
------------------------------------------------------------------------

#223: IncompatibleClassChangeError when deserializing a class implementing
an interface with default get/set implementations
(reported by @avnersin)

2.16.0-rc1 (20-Oct-2023)

#181: (blackbird) BlackBird proxy object error in Java 17
Expand Down