8028041: Serialized Form description of j.l.String is not consistent with the implementation
Summary: Replaced incorrect description with reference to the serialization specification
Reviewed-by: alanb, smarks
--- a/jdk/src/share/classes/java/lang/String.java Fri Nov 08 21:07:42 2013 +0000
+++ b/jdk/src/share/classes/java/lang/String.java Fri Nov 08 17:50:24 2013 -0500
@@ -122,14 +122,9 @@
/**
* Class String is special cased within the Serialization Stream Protocol.
*
- * A String instance is written initially into an ObjectOutputStream in the
- * following format:
- * <pre>
- * {@code TC_STRING} (utf String)
- * </pre>
- * The String is written by method {@code DataOutput.writeUTF}.
- * A new handle is generated to refer to all future references to the
- * string instance within the stream.
+ * A String instance is written into an ObjectOutputStream according to
+ * <a href="{@docroot}../platform/serialization/spec/output.html">
+ * Object Serialization Specification, Section 6.2, "Stream Elements"</a>
*/
private static final ObjectStreamField[] serialPersistentFields =
new ObjectStreamField[0];