From b2b468233270c183bef49a6fdb25df879875ff0e Mon Sep 17 00:00:00 2001 From: Costin Leau Date: Thu, 27 Aug 2009 09:47:15 +0000 Subject: [PATCH] + 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 --- .../beans/factory/support/ConstructorResolver.java | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/org.springframework.beans/src/main/java/org/springframework/beans/factory/support/ConstructorResolver.java b/org.springframework.beans/src/main/java/org/springframework/beans/factory/support/ConstructorResolver.java index 30b93f7f598..d390803b15f 100644 --- a/org.springframework.beans/src/main/java/org/springframework/beans/factory/support/ConstructorResolver.java +++ b/org.springframework.beans/src/main/java/org/springframework/beans/factory/support/ConstructorResolver.java @@ -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