NestedPlaceholder are not recursively resolved if the fallback is a placeholder #34020
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: regression
A bug that is also a regression
Milestone
Nested placeholder is not recursively resolved in case it has a default value of another placeholder.
It used to work in Spring 6.1.9
How to reproduce:
Navigate to the parser test:
spring-framework/spring-core/src/test/java/org/springframework/util/PlaceholderParserTests.java
Line 212 in 078d683
add one more line to test:
${p6:${p1}}
isv1:v2:def
, but actual is${p1}:${p2}:${bogus:def}
- the raw text value ofp6
.How to fix:
spring-framework/spring-core/src/main/java/org/springframework/util/PlaceholderParser.java
Line 498 in 078d683
spring-framework/spring-core/src/main/java/org/springframework/util/PlaceholderParser.java
Line 446 in 078d683
The text was updated successfully, but these errors were encountered: