Use merged bean definitions for EntityCallback type lookup.

We now use the merged bean definition to resolve the defined EntityCallback type.

Previously, we used just the bean definition that might have contained no type hints because of ASM-parsed configuration classes.

Closes #2853
This commit is contained in:
Mark Paluch
2023-06-14 09:03:39 +02:00
parent 602cd28142
commit 3281837cbd
3 changed files with 34 additions and 42 deletions

View File

@@ -170,7 +170,6 @@ class DefaultEntityCallbacksUnitTests {
void detectsMultipleCallbacksWithinOneClass() {
var ctx = new AnnotationConfigApplicationContext(MultipleCallbacksInOneClassConfig.class);
var callbacks = new DefaultEntityCallbacks(ctx);
var personDocument = new PersonDocument(null, "Walter", null);