--- old/src/java.rmi/share/classes/java/rmi/server/RemoteObject.java 2018-07-20 14:09:24.104394914 -0700 +++ new/src/java.rmi/share/classes/java/rmi/server/RemoteObject.java 2018-07-20 14:09:23.708394903 -0700 @@ -359,7 +359,7 @@ * readExternal method. */ private void writeObject(java.io.ObjectOutputStream out) - throws java.io.IOException, java.lang.ClassNotFoundException + throws java.io.IOException { if (ref == null) { throw new java.rmi.MarshalException("Invalid remote object");