mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
cc530d4df2
The RuntimeBeanReference(name, type) constructor was introduced in 7.0; however, BeanDefinitionPropertyValueCodeGeneratorDelegates in our AOT infrastructure was not updated to support the new constructor. This commit revises BeanDefinitionPropertyValueCodeGeneratorDelegates to ensure that AOT generated code for a RuntimeBeanReference uses the RuntimeBeanReference(name, type) constructor, thereby retaining the originally configured bean name. See gh-35101 Closes gh-35913