Browse Source

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

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

4
org.springframework.beans/src/main/java/org/springframework/beans/factory/support/BeanDefinitionValueResolver.java

@ -167,10 +167,10 @@ class BeanDefinitionValueResolver { @@ -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