diff --git a/spring-context/src/main/java/org/springframework/context/support/GenericApplicationContext.java b/spring-context/src/main/java/org/springframework/context/support/GenericApplicationContext.java index c3daaaf676..8f49d459fd 100644 --- a/spring-context/src/main/java/org/springframework/context/support/GenericApplicationContext.java +++ b/spring-context/src/main/java/org/springframework/context/support/GenericApplicationContext.java @@ -117,8 +117,7 @@ public class GenericApplicationContext extends AbstractApplicationContext implem MemberCategory.DECLARED_FIELDS); private static final Consumer asProxiedUserClass = hint -> - hint.withMembers(MemberCategory.INTROSPECT_DECLARED_CONSTRUCTORS, - MemberCategory.INVOKE_DECLARED_METHODS); + hint.withMembers(MemberCategory.INVOKE_PUBLIC_METHODS); private final DefaultListableBeanFactory beanFactory;