Skip to content

BeanFactoryAnnotationUtils.qualifiedBeanOfType should not instantiate all beans of given type before checking qualifier [SPR-13741] #18314

Closed
@spring-projects-issues

Description

@spring-projects-issues

Jakub Bochenski opened SPR-13741 and commented

Basically what was reported on SO

Offending line: ```
Map<String, T> candidateBeans = BeanFactoryUtils.beansOfTypeIncludingAncestors(bf, beanType);


Affects: 3.2.15, 4.1.8, 4.2.3

Reference URL: https://stackoverflow.com/questions/27177364/spring-candidate-bean-type-strategy-is-bad

Issue Links:

Backported to: 4.1.9, 3.2.16

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)status: backportedAn issue that has been backported to maintenance branchestype: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions