spring-framework icon indicating copy to clipboard operation
spring-framework copied to clipboard

MergedBeanDefinitions change can be lost if bean is instantiated

Open snicoll opened this issue 2 years ago • 1 comments

Freezing the configuration was unfortunately not enough. If a bean is instantiated in an AOT refreshed context, the merged bean definition is flagged stale and it is merged again. As a result, changes made to it are lot, typically the destroy method names.

snicoll avatar Aug 10 '22 14:08 snicoll

markBeanAsCreated is clearing the cache for the bean name.

snicoll avatar Aug 10 '22 14:08 snicoll