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

master
Andy Clement 15 years ago
parent dcb52dbbc1
commit d3c54d979e
  1. 4
      org.springframework.beans/src/main/java/org/springframework/beans/factory/support/BeanDefinitionValueResolver.java

@ -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);
}

Loading…
Cancel
Save