SpEL: Two double quotes are replaced by one double quote in single quoted String
literal (and vice versa)
#28356
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
Affects:
spring-expression
since3.2 M2
up to5.3.19
The problem:
Two double quotes are replaced by one double quote - even when literal within single quotes
According to reference guide only single quotes are allowed for
String
literals.However double quotes are actually supported too (see #14254). And they also replacing two single quotes by one single quote.
spring-framework/spring-expression/src/main/java/org/springframework/expression/spel/standard/Tokenizer.java
Line 301 in 4e6ef82
spring-framework/spring-expression/src/main/java/org/springframework/expression/spel/ast/StringLiteral.java
Line 41 in b595dc1
Simple test program:
The text was updated successfully, but these errors were encountered: