You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Spring Expression Language currently supports nested single quotes within expressions but not nested double quotes.
For example, 'Wayne''s World' properly evaluates to Wayne's World, but each of the following results in an exception being thrown.
Expression
Expected
Result
"double quote: ""."
double quote: ".
SpelParseException
"double quote: ""."
double quote: ".
IllegalStateException
Deliverables
Determine if it's appropriate for SpEL to throw an IllegalStateException in the second example above
Wrap the IllegalStateException in a SpelParseException if it is determined to be an error to throw the IllegalStateException
Support nested double quotes within SpEL expressions
using the syntax from at least one of the aforementioned failing examples, preferably from the first one for consistency with handling of single quotes
Affects: 3.0 GA, 3.1.2
The text was updated successfully, but these errors were encountered:
The Spring Expression Language currently supports nested single quotes
within expressions but not nested double quotes.
The SpEL tokenizer has been modified to support nested double quotes in
the same way it supports single quotes. A sequence of two double quotes
will now be replaced by one when evaluated.
Extra error handling has also been added to report when invalid escaping
is encountered, since SpEL does not support escaping with backslash.
Sam Brannen opened SPR-9620 and commented
Status Quo
The Spring Expression Language currently supports nested single quotes within expressions but not nested double quotes.
For example,
'Wayne''s World'
properly evaluates to Wayne's World, but each of the following results in an exception being thrown.SpelParseException
IllegalStateException
Deliverables
IllegalStateException
in the second example aboveIllegalStateException
in aSpelParseException
if it is determined to be an error to throw theIllegalStateException
Affects: 3.0 GA, 3.1.2
The text was updated successfully, but these errors were encountered: