Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.6
-
None
Description
Though ExceptionUtils.getCause is deprecated it's used internally, for example in ExceptionUtils.getThrowables.
We noticed this while running performance tests where a large number of NoSuchMethod exceptions where seen since ExceptionUtils.getCause catches them repeatedly. Unless initialised carefully, creating exceptions has the overhead of filling the stack trace which was our performance concern.