@Lookup doesn't work in case of AbstractBeanFactory's cacheBeanMetadata=false #25749
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: enhancement
A general enhancement
Milestone
HI! I came across the use case when I wanted to create some provider with @lookup but when our BeanFactory has cacheBeanMetadata = false, Spring can't create a proxy for the provider and then @lookup doesn't work.
Here is my unit test for ease reproduction https://github.com/aliaksandr-budnikau/Lookup-annotation-bug/blob/master/src/test/java/org/example/MyComponentProviderTest.java
Thanks,
Alex
The text was updated successfully, but these errors were encountered: