Throw SpelParseException
for unsupported character in SpelExpressionParser
#33767
Labels
Milestone
SpelParseException
for unsupported character in SpelExpressionParser
#33767
Reproducer: https://gist.github.com/MikailBag/ed3b036da394aae7c57e89267920f522
Actual expression:
"#{m[‘c]}"
(Please note that ‘ is not an ASCII quote)
Expected behavior: program prints "OK" (or maybe "Incorrect success", if the expression is actually correct).
Actual behavior:
I consider this behavior incorrect, as
SpelExpressionParser
is documented to throw (checked)ParseException
, and not documented to throw any runtime exceptions (except maybeNullPointerException
if input isnull
).This issue may be related to #31097.
I was able to reproduce the problem with the latest published stable version v6.1.14.
The text was updated successfully, but these errors were encountered: