Skip to content

Escaped placeholders are evaluated if the PropertySource has placeholder support #34326

Open
@snicoll

Description

@snicoll

This is a follow-up of #34315

Consider the following example:

prop1=value1
prop2=value2\\${prop1}

prop2 should evaluate to value2${prop1} as the placeholder has been escaped.

This works for basic PropertySource implementations, but if the source is backed by PropertySourcesPlaceholderConfigurer the escaped ${prop1} is still evaluated even though it should not be.

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: bugA general bug

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions