Skip to content

Regression in 6.2.3: No unique bean available for injection point with unresolvable generics #34541

Closed
@ML-Marco

Description

@ML-Marco

Autowiring does not find a suitable candidate in 6.2.3 any more. Throws an exception on startup. This used to work with all previous versions, including 6.2.2.

Caused by: org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type 'spring.PaymentCreator<spring.Payment, spring.PaymentCreatorParameter<spring.Payment>>' available: expected single matching bean but found 2: bankTransferCreator,electronicCashPaymentCreator

Reproducer: bug.zip

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: regressionA bug that is also a regression

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions