kevin.cianfarini
06/19/2024, 2:36 PMkevin.cianfarini
06/19/2024, 2:37 PMCLOVIS
06/20/2024, 8:28 AMtry … catch
with a call to e.duplicate
(or whatever that function is called). For some exceptions, a reflection call may be necessary. But, if your app is already using reflection-heavy libraries, like Spring or Jackson, I doubt you can measure a difference.
The reason it's not enabled by default is that some libraries use the referential identity of exceptions, and so enabling stack trace recovery breaks them 😕