Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix conversion failures when using DefaultResolver
Update `ConfigurationPropertySourcesPropertyResolver` so that calls to the `DefaultResolver` do not attempt conversion. Prior to this commit, the delegate resolver was accidentally called with the target type which could cause a `ConversionFailedException` to be thrown. We should have always used `Object.class` and let the `convertValueIfNecessary` method perform conversion. Fixes gh-26732
- Loading branch information
Showing
2 changed files
with
14 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters