Using CollectionFactory.createStringAdaptingProperties() instead of new Properties().Using method getProperty() will get null after mergeProperties() when the value is non-string type, .
Comment From: pivotal-issuemaster
@LiuMenghan Please sign the Contributor License Agreement!
Click here to manually synchronize the status of this Pull Request.
See the FAQ for frequently asked questions.
Comment From: pivotal-issuemaster
@LiuMenghan Thank you for signing the Contributor License Agreement!
Comment From: LiuMenghan
Can you please provide some background on your use case?
Also, can you please introduce tests that failed before the change and pass after the change?
I use YamlPropertiesFactoryBean and PropertyPlaceholderConfigurer together when trying to upgrade spring and add yaml support in an old project. Some value with the type of integer in yaml file cannot be injected correctly. One alternative way to solve my problem is to use PropertySourcesPlaceholderConfigurer instead. But I still think it is a bug if someone forgetting not to use PropertyPlaceholderConfigurer like me.
Comment From: snicoll
Sorry but I don't understand the problem you're describing and, without a failing test case that shows what it is trying to solve, we can't accept the change. I am going to close this now but we can reconsider if you provide the additional context.