8028041: Serialized Form description of j.l.String is not consistent with the implementation

Replaced incorrect description with reference to the serialization specification

Reviewed-by: alanb, smarks
This commit is contained in:
Roger Riggs 2013-11-08 17:50:24 -05:00
parent 086dfc45ca
commit eb5d8c2f8b

View File

@ -122,14 +122,9 @@ public final class String
/**
* 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];