Skip to content

Commit f6708d1

Browse files
committed
Expose all public user class methods (including inherited methods) for reflection
Also removes declared constructors hint for user classes which should not be necessary. See gh-29335
1 parent f93fda2 commit f6708d1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

spring-context/src/main/java/org/springframework/context/support/GenericApplicationContext.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,7 @@ public class GenericApplicationContext extends AbstractApplicationContext implem
117117
MemberCategory.DECLARED_FIELDS);
118118

119119
private static final Consumer<Builder> asProxiedUserClass = hint ->
120-
hint.withMembers(MemberCategory.INTROSPECT_DECLARED_CONSTRUCTORS,
121-
MemberCategory.INVOKE_DECLARED_METHODS);
120+
hint.withMembers(MemberCategory.INVOKE_PUBLIC_METHODS);
122121

123122

124123
private final DefaultListableBeanFactory beanFactory;

0 commit comments

Comments
 (0)