This commit is contained in:
Keith Donald
2008-10-17 16:34:30 +00:00
parent 567f5da88a
commit 587c3c061e

View File

@@ -78,6 +78,7 @@ class OgnlExpression implements Expression {
public Object getValue(Object context) throws EvaluationException {
try {
Map evaluationContext = Ognl.addDefaultContext(context, getVariables(context));
Ognl.setTypeConverter(evaluationContext, createTypeConverter());
return Ognl.getValue(expression, evaluationContext, context, expectedResultType);
} catch (NoSuchPropertyException e) {
throw new PropertyNotFoundException(context.getClass(), getExpressionString(), e);