Skip to content

Detect late-set primary markers for autowiring shortcut algorithm #34658

Closed
@jhoeller

Description

@jhoeller

The autowiring shortcut introduced in 6.2 (#28122) relies on potentially conflicting primary beans being known at injection time. Late-set primary markers in a BeanFactoryPostProcessor need to get consistently detected and taken into account as well, allowing the shortcut algorithm to back out if any such primary-marked bean matches the injection type (overriding a bean name match for the field/parameter name).

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions