Explicit support of String[] value resolution
This commit adds an explicit support for String array for value
resolution. <util:properties> switches the 'locations' property to a
String array in 662d8aa and this broke expression evaluation.
Issue: SPR-12391
This commit is contained in:
@@ -200,6 +200,14 @@ class BeanDefinitionValueResolver {
|
||||
"Error converting typed String value for " + argName, ex);
|
||||
}
|
||||
}
|
||||
else if (value instanceof String[]) {
|
||||
String[] values = (String[]) value;
|
||||
Object[] resolvedValues = new Object[values.length];
|
||||
for (int i = 0; i < values.length; i++) {
|
||||
resolvedValues[i] = evaluate(values[i]);
|
||||
}
|
||||
return resolvedValues;
|
||||
}
|
||||
else {
|
||||
return evaluate(value);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user