--- old/src/java.sql/share/classes/java/sql/BatchUpdateException.java 2018-07-20 14:09:28.312395030 -0700 +++ new/src/java.sql/share/classes/java/sql/BatchUpdateException.java 2018-07-20 14:09:27.920395019 -0700 @@ -553,7 +553,7 @@ * to a stream. */ private void writeObject(ObjectOutputStream s) - throws IOException, ClassNotFoundException { + throws IOException { ObjectOutputStream.PutField fields = s.putFields(); fields.put("updateCounts", updateCounts);