Browse Source

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

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1776 50f2f4bb-b051-0410-bef5-90022cba6387
pull/1/head
Costin Leau 17 years ago
parent
commit
b2b4682332
  1. 9
      org.springframework.beans/src/main/java/org/springframework/beans/factory/support/ConstructorResolver.java

9
org.springframework.beans/src/main/java/org/springframework/beans/factory/support/ConstructorResolver.java

@ -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

Loading…
Cancel
Save