MessagingException should not provide empty description String to NestedRuntimeException [SPR-13447] #18027
Labels
in: messaging
Issues in messaging modules (jms, messaging)
status: backported
An issue that has been backported to maintenance branches
type: bug
A general bug
Milestone
Artem Bilan opened SPR-13447 and commented
The code to consider:
Where the
NestedRuntimeException
superclass does this:And that utility method implementation is like this:
Having such a logic we end up with bad StackTrace message which is starting just from the "; " string.
We can just provide the
null
for that description to the superclass ordeprecate
all those constructors withoutdescription
argument in theMessagingException
and its inheritors to make end user to provide the particular info for better logs readability.See the linked Spring Integration issue and its Pull Request for more info.
Looking forward for any other thoughts on the matter!
Thanks in advance
Affects: 4.1.7, 4.2.1
Issue Links:
Referenced from: commits c4f5a0f, 987d93f
Backported to: 4.1.8
The text was updated successfully, but these errors were encountered: