+ add implicit (String) type for typed string values w/o a specified type

This commit is contained in:
Costin Leau 2009-08-27 09:47:15 +00:00
parent c870e01757
commit 015284af7c
1 changed files with 1 additions and 8 deletions

View File

@ -681,14 +681,7 @@ class ConstructorResolver {
} }
} }
args.arguments[paramIndex] = convertedValue; args.arguments[paramIndex] = convertedValue;
if (mbd.isLenientConstructorResolution()) { args.rawArguments[paramIndex] = originalValue;
args.rawArguments[paramIndex] = originalValue;
}
else {
args.rawArguments[paramIndex] =
((sourceValue instanceof TypedStringValue && !((TypedStringValue) sourceValue).hasTargetType()) ?
convertedValue : originalValue);
}
} }
else { else {
// No explicit match found: we're either supposed to autowire or // No explicit match found: we're either supposed to autowire or