ConstructorResolver.resolveConstructorArguments() return value issue #25130
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: enhancement
A general enhancement
Milestone
In
ConstructorResolver
:I assume that method
resolveConstructorArguments
is to resolve contructor arguments in the XML file and return the minimum number of parameters required by contructor 。but if the first parameter is autowired , the second parameter is config by XML file,the method will not work well。example:
the
resolveConstructorArguments
method will return 1,but correct answer is 2。I think the problem arises because of this judgment:
It might be better to change it to look like this
The text was updated successfully, but these errors were encountered: