Skip to content

Commit fe47670

Browse files
authored
Improve comments
1 parent 549650e commit fe47670

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

log4j-core/src/main/java/org/apache/logging/log4j/core/pattern/ThrowableStackTraceRenderer.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,11 @@ static final class Metadata {
268268
final int stackLength;
269269

270270
/**
271-
* The stack trace of this {@link Throwable}
271+
* The stack trace of this {@link Throwable}.
272+
* This needs to be captured separately since {@link Throwable#getStackTrace()} can change.
273+
*
274+
* @see <a href="https://github.com/apache/logging-log4j2/issues/3940">#3940</a>
275+
* @see <a href="https://github.com/apache/logging-log4j2/pull/3955">#3955</a>
272276
*/
273277
final StackTraceElement[] stackTrace;
274278

0 commit comments

Comments
 (0)