SpEL string literal misses single quotation marks in toStringAST() #29604
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
status: backported
An issue that has been backported to maintenance branches
type: bug
A general bug
Milestone
Hi
Today I faced with the following problem: string literal loses single quotation marks after I call .toStringAST(). I implemented the test reproducing the bug:
And it fails with the error
expected: <'123''1' == '123''1'> but was: <('123'1' == '123'1')>
As far as I am concerned this occurs due to problems in StringLiteral class and
toString()
implementation which uses not original string but changed one aftervalueWithinQuotes = StringUtils.replace(valueWithinQuotes, "''", "'");
in public constructor.
The text was updated successfully, but these errors were encountered: