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.