You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 23, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Feb 23, 2023. It is now read-only.
ImportAware links are being called inconsistently #1079
ImportAwareLinksDiscoverer is relying on ResolvableType to figure out whether the bean type implements ImportAware. Unfortunately, some bean definitions doesn't have one so we should fallback to the beanClassName if necessary.
changed the title [-]ImportAware link is not detected if the bean definition does not have a ResolvableType[/-][+]ImportAware links are being called inconsistently[/+]on Sep 27, 2021
On a second look, this is rather a different problem. We're taking the parent configuration class as the import link whereas framework really means the import semantic. So, for instance, if you have a inner class of a configuration class that's import aware, the AOT engine will honor the callback whereas the JVM would not (as the inner class wasn't @Import'ed).
Unfortunately, there's no API to access that information as the ImportStack is computed at runtime. We will have to change something in our override of ConfigurationClassParser for this.
Activity
[-]ImportAware link is not detected if the bean definition does not have a ResolvableType[/-][+]ImportAware links are being called inconsistently[/+]snicoll commentedon Sep 27, 2021
On a second look, this is rather a different problem. We're taking the parent configuration class as the import link whereas framework really means the import semantic. So, for instance, if you have a inner class of a configuration class that's import aware, the AOT engine will honor the callback whereas the JVM would not (as the inner class wasn't
@Import'ed).Unfortunately, there's no API to access that information as the
ImportStackis computed at runtime. We will have to change something in our override ofConfigurationClassParserfor this.Handle ImportAware callbacks consistently
snicoll commentedon Sep 28, 2021
Fixed by 1d055a1
Handle ImportAware callbacks consistently