diff --git a/spring-context/src/test/java/org/springframework/context/annotation/AnnotationConfigApplicationContextTests.java b/spring-context/src/test/java/org/springframework/context/annotation/AnnotationConfigApplicationContextTests.java index 2b2b291c79..d5ba2a49b8 100644 --- a/spring-context/src/test/java/org/springframework/context/annotation/AnnotationConfigApplicationContextTests.java +++ b/spring-context/src/test/java/org/springframework/context/annotation/AnnotationConfigApplicationContextTests.java @@ -475,8 +475,7 @@ class AnnotationConfigApplicationContextTests { RuntimeHints runtimeHints = new RuntimeHints(); context.refreshForAotProcessing(runtimeHints); assertThat(RuntimeHintsPredicates.reflection().onType(TypeReference.of(CglibConfiguration.class)) - .withMemberCategories(MemberCategory.INTROSPECT_DECLARED_CONSTRUCTORS, - MemberCategory.INVOKE_DECLARED_METHODS)) + .withMemberCategories(MemberCategory.INVOKE_PUBLIC_METHODS)) .accepts(runtimeHints); }