PlaceholderConfigurerSupport.doProcessProperties() loses stack trace on exception [SPR-11346] #15970
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
status: backported
An issue that has been backported to maintenance branches
type: bug
A general bug
Milestone
Jim Yingst opened SPR-11346 and commented
In org.springframework.beans.factory.config.PlaceholderConfigurerSupport, the doProcessProperties() method contains the following code:
This effectively loses all stack trace information for the original exception, ex. Other than the getMessage(), which may or may not be useful. It would be easy to change this to properly set the nested cause so as to preserve this information:
Affects: 3.2.6
Referenced from: commits 8d304ef, fdd31c0
Backported to: 3.2.7
The text was updated successfully, but these errors were encountered: