--- old/src/java.base/share/classes/java/lang/Throwable.java 2018-09-13 13:47:49.000000000 -0700 +++ new/src/java.base/share/classes/java/lang/Throwable.java 2018-09-13 13:47:49.000000000 -0700 @@ -466,6 +466,16 @@ return this; } + /* + * This is called by readObject of a few exceptions such as + * ClassNotFoundException and ExceptionInInitializerError to deserialize + * a stream output from an older runtime version where the cause may + * have set to null. + */ + final void setCause(Throwable t) { + this.cause = t; + } + /** * Returns a short description of this throwable. * The result is the concatenation of: