-
Notifications
You must be signed in to change notification settings - Fork 38.8k
Description
Artem Bilan opened SPR-10938 and commented
As far as SpEL is some runtime tool, which evaluation result fully depends of provided context (rootObject, variables etc..), it's not enough to see in theStackTrace just a problem, e.g.
Caused by: java.lang.IllegalArgumentException: Cannot convert value of type [java.util.Date] to required type [int]:
It would be better to see which Expression
(at least) causes the problem.
In addition, SpEL is some central tool in the Spring Integration, where one Handler
may evaluate not one expression for one call, but different Messages
may cause different EvaluationException
, but with the same expression.
Something similar there is already in the Spring Integration: https://github.com/spring-projects/spring-integration/blob/master/spring-integration-core/src/main/java/org/springframework/integration/util/AbstractExpressionEvaluator.java#L118
But, it would be better, if core EvaluationException
will provide the same.
Issue Links:
- Include expression string in SpelParseException [SPR-14942] #19509 Include expression string in SpelParseException
Referenced from: commits 014d156