Closed
Description
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:
-
add one more line to test:
Arguments.of("${p6:${p1}}", "v1:v2:def"),
- Expected value of
${p6:${p1}}
isv1:v2:def
, but actual is${p1}:${p2}:${bogus:def}
- the raw text value ofp6
.
How to fix:
- Modify this line of NestedPlaceholderPart to recursively resolve the value
- The recursive resolution code is already there at the following line but it is used in SimplePlaceholderPart only: