Corrected exception message inserts

This commit is contained in:
Andy Clement 2009-04-08 04:49:47 +00:00
parent 4a7f7bb24a
commit 30bed7b54a
1 changed files with 3 additions and 1 deletions

View File

@ -154,7 +154,9 @@ public class ExpressionState {
return new TypedValue(returnValue,TypeDescriptor.forObject(returnValue)); return new TypedValue(returnValue,TypeDescriptor.forObject(returnValue));
} }
else { else {
throw new SpelException(SpelMessages.OPERATOR_NOT_SUPPORTED_BETWEEN_TYPES, op, left, right); String leftType = (left==null?"null":left.getClass().getName());
String rightType = (right==null?"null":right.getClass().getName());
throw new SpelException(SpelMessages.OPERATOR_NOT_SUPPORTED_BETWEEN_TYPES, op, leftType, rightType);
} }
} }