SPR-5906: test and fix for using expressions in property list keys and values

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1486 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
Andy Clement
2009-07-07 20:13:21 +00:00
parent f4a52f32b3
commit 898f8192c8
@@ -167,10 +167,10 @@ class BeanDefinitionValueResolver {
Object propKey = propEntry.getKey();
Object propValue = propEntry.getValue();
if (propKey instanceof TypedStringValue) {
propKey = ((TypedStringValue) propKey).getValue();
propKey = evaluate(((TypedStringValue) propKey).getValue());
}
if (propValue instanceof TypedStringValue) {
propValue = ((TypedStringValue) propValue).getValue();
propValue = evaluate(((TypedStringValue) propValue).getValue());
}
copy.put(propKey, propValue);
}