Support package private methods on CGLIB proxies with AOT

Closes gh-29582
Closes gh-29764
This commit is contained in:
Sébastien Deleuze
2023-02-24 17:00:41 +01:00
parent 7ace9aa429
commit 6825a842b5
2 changed files with 7 additions and 2 deletions

View File

@@ -518,6 +518,9 @@ class AnnotationConfigApplicationContextTests {
.withMemberCategories(MemberCategory.INVOKE_DECLARED_CONSTRUCTORS,
MemberCategory.INVOKE_DECLARED_METHODS, MemberCategory.DECLARED_FIELDS))
.accepts(runtimeHints);
assertThat(RuntimeHintsPredicates.reflection().onType(CglibConfiguration.class)
.withMemberCategories(MemberCategory.INVOKE_PUBLIC_METHODS, MemberCategory.INVOKE_DECLARED_METHODS))
.accepts(runtimeHints);
}
@Test