diff -r 18863bf3501f -r e0b8b019d2f5 src/java.base/share/classes/java/lang/Throwable.java --- a/src/java.base/share/classes/java/lang/Throwable.java Thu Aug 29 18:52:30 2019 -0400 +++ b/src/java.base/share/classes/java/lang/Throwable.java Thu Aug 29 16:31:34 2019 -0700 @@ -114,6 +114,7 @@ */ public class Throwable implements Serializable { /** use serialVersionUID from JDK 1.0.2 for interoperability */ + @java.io.Serial private static final long serialVersionUID = -3042686055658047285L; /** @@ -901,6 +902,7 @@ * cause} field can hold; both {@code null} and {@code this} are * valid values for the field. */ + @java.io.Serial private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException { s.defaultReadObject(); // read in all fields @@ -989,6 +991,7 @@ * form as a one-element array whose element is equal to {@code * new StackTraceElement("", "", null, Integer.MIN_VALUE)}. */ + @java.io.Serial private synchronized void writeObject(ObjectOutputStream s) throws IOException { // Ensure that the stackTrace field is initialized to a