-
Notifications
You must be signed in to change notification settings - Fork 660
Description
Describe the bug
The getStackTrace()
method of com.lowagie.text.ExceptionConverter
always returns an empty array.
This is pretty problematic because if an ExceptionConverter
exception propagates to user code, and is there logged for example (which might use getStackTrace()
), the user will see no stack trace at all.
To Reproduce
new ExceptionConverter(new IOException("test")).getStackTrace()
// ==> StackTraceElement[0] { }
Expected behavior
getStackTrace()
should return the stack trace
Though generally, maybe it would be worth reconsidering if all this special handling in ExceptionConverter
is really worth it, or if it could be a normal exception class which just sets the original exception as cause, without any of this special handling. Respectively revert 94f6a23.
That might make the exception more verbose, but would at least guarantee that no information is lost.
System
- OpenPDF version: latest (4821449), respectively OpenPDF 2.0.3
Your real name
Please specify your full name here, so that we can verify your identity.
If you have a conflict of interest describe this here also.