mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
+ add implicit (String) type for typed string values w/o a specified type
This commit is contained in:
+1
-8
@@ -681,14 +681,7 @@ class ConstructorResolver {
|
||||
}
|
||||
}
|
||||
args.arguments[paramIndex] = convertedValue;
|
||||
if (mbd.isLenientConstructorResolution()) {
|
||||
args.rawArguments[paramIndex] = originalValue;
|
||||
}
|
||||
else {
|
||||
args.rawArguments[paramIndex] =
|
||||
((sourceValue instanceof TypedStringValue && !((TypedStringValue) sourceValue).hasTargetType()) ?
|
||||
convertedValue : originalValue);
|
||||
}
|
||||
args.rawArguments[paramIndex] = originalValue;
|
||||
}
|
||||
else {
|
||||
// No explicit match found: we're either supposed to autowire or
|
||||
|
||||
Reference in New Issue
Block a user