Improve error message for unsupported character in SpEL expression #30602
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: enhancement
A general enhancement
Milestone
Overview
If the Spring Expression Language (SpEL) parser encounters a character that it does not support, the current error message is not very helpful.
For example, if an identifier (i.e., property name, variable name, etc.) contains a character with an umlaut such as
ü
, the error message is currently:Cannot handle (252) 'ü'
.In such cases, we should craft a more meaningful error message such as:
Unsupported character 'ü' (252) encountered at position 13 in expression
.Related Issues
The text was updated successfully, but these errors were encountered: