[java] ensure proper error message gets logged#12853
Conversation
|
Good observation. This is a good start. I think similar changes might be required in other places as well. Example: , |
ff4d2f2 to
9f0e635
Compare
|
@diemol I updated the code to make sure |
|
@pujagani I wanted to keep the changes limited to the one place I saw a specific problem (missing info in the logs I'm looking at). The code is still the same in Java 21, which leads me to believe it is intentional? I raised a ticket with Oracle to get their response.
🤷 |
* [java] ensure proper error message gets logged * check getCause for null instead of getMessage
Java Throwable class (at least for Java 11) does not set the detailMessage in the
initCausemethod the same way it does in the way it does in the constructor:vs