< prev index next >
src/java.base/share/classes/java/lang/Throwable.java
Print this page
*** 209,220 ****
*/
private StackTraceElement[] stackTrace = UNASSIGNED_STACK;
// Setting this static field introduces an acceptable
// initialization dependency on a few java.util classes.
! private static final List<Throwable> SUPPRESSED_SENTINEL =
! Collections.unmodifiableList(new ArrayList<Throwable>(0));
/**
* The list of suppressed exceptions, as returned by {@link
* #getSuppressed()}. The list is initialized to a zero-element
* unmodifiable sentinel list. When a serialized Throwable is
--- 209,219 ----
*/
private StackTraceElement[] stackTrace = UNASSIGNED_STACK;
// Setting this static field introduces an acceptable
// initialization dependency on a few java.util classes.
! private static final List<Throwable> SUPPRESSED_SENTINEL =Collections.emptyList();
/**
* The list of suppressed exceptions, as returned by {@link
* #getSuppressed()}. The list is initialized to a zero-element
* unmodifiable sentinel list. When a serialized Throwable is
< prev index next >