Skip to content

Deprecate RootBeanDefinition(ResolvableType) constructor #30704

@jhoeller

Description

@jhoeller

The new RootBeanDefinition constructor in 6.0 causes some confusion in terms of its semantics since it sets the target type rather than the bean class. It seems better to deprecate it and suggest an explicit setTargetType call instead.

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions