We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e0ccbcb commit 2c85be3Copy full SHA for 2c85be3
spring-core/src/main/java/org/springframework/util/ReflectionUtils.java
@@ -862,10 +862,10 @@ public interface FieldFilter {
862
863
864
/**
865
- * Pre-built MethodFilter that matches all non-bridge methods
+ * Pre-built MethodFilter that matches all non-bridge non-synthetic methods
866
* which are not declared on {@code java.lang.Object}.
867
*/
868
public static final MethodFilter USER_DECLARED_METHODS =
869
- (method -> (!method.isBridge() && method.getDeclaringClass() != Object.class));
+ (method -> (!method.isBridge() && !method.isSynthetic() && method.getDeclaringClass() != Object.class));
870
871
}
0 commit comments