Otherwise memory leak may occur due to repeated use of singleton exception. This is due to the ability for Throwable to contain a list of suppressed exceptions (and therefore being mutable) and the list to grow indefinitely.

Comment From: pivotal-cla

@pokab 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-cla

@pokab Thank you for signing the Contributor License Agreement!

Comment From: sbrannen

Good catch.

This has been merged into 5.3.x and main.

Thanks for submitting your first PR to the Spring Framework! 👍