--- old/src/java.base/share/classes/java/io/ObjectInputStream.java 2018-03-28 13:15:04.932051882 -0400 +++ new/src/java.base/share/classes/java/io/ObjectInputStream.java 2018-03-28 13:15:04.575873883 -0400 @@ -52,6 +52,14 @@ * An ObjectInputStream deserializes primitive data and objects previously * written using an ObjectOutputStream. * + *

Warning: Deserialization of untrusted data is inherently dangerous + * and should be avoided. Untrusted data should be carefully validated according to the + * "Serialization and Deserialization" section of the + * {@extLink secure_coding_guidelines_javase Secure Coding Guidelines for Java SE}. + * {@extLink serialization_filter_guide Serialization Filtering} describes best + * practices for defensive use of serial filters. + *

+ * *

ObjectOutputStream and ObjectInputStream can provide an application with * persistent storage for graphs of objects when used with a FileOutputStream * and FileInputStream respectively. ObjectInputStream is used to recover