mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-17 16:39:29 +00:00
Corrected exception message inserts
This commit is contained in:
+3
-1
@@ -154,7 +154,9 @@ public class ExpressionState {
|
||||
return new TypedValue(returnValue,TypeDescriptor.forObject(returnValue));
|
||||
}
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user