Availability of a bean definition's resolved factory method depends upon a side-effect of getBeanNamesForType which is lost when metadata caching is disabled #23795
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: enhancement
A general enhancement
Milestone
Affects: 5.1.x and 5.2.x
This is a follow-on from spring-projects/spring-boot#18440. The difference in Framework's behaviour with and without bean metadata caching is illustrated by the following tests:
This has only become a problem in Boot 2.2 as we're now leaning more heavily upon the resolved factory method for performance reasons.
My analysis in the Boot issue that led to me opening this issue was the following:
I have added a workaround in Boot to avoid shipping a regression in 2.2, but I'd like to be able to revert that workaround in favour of a more general solution in Framework.
The text was updated successfully, but these errors were encountered: