From 5ff55538782c9db56aabcb1a5b079af164463272 Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Thu, 20 Oct 2022 09:35:57 +0200 Subject: [PATCH] Adapted test for reflection hints on proxied user classes See gh-29335 --- .../annotation/AnnotationConfigApplicationContextTests.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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); }