mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
ce8e06cf10
Prior to this commit, AOT processing failed for tests that made use of the Bean Override feature, since the Set<OverrideMetadata> constructor argument configured in the bean definition for the BeanOverrideBeanFactoryPostProcessor cannot be properly processed by our AOT support. The reason is that each OverrideMetadata instance is effectively an arbitrary object graph that cannot be automatically converted to a functional bean definition for use at AOT runtime. To address that, this commit registers Bean Override infrastructure beans as manual singletons instead of via bean definitions with the infrastructure role. See gh-32933