OpenJDK / jdk / jdk10
changeset 21636:fcec9002d5f4
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
author | rriggs |
---|---|
date | Fri, 08 Nov 2013 17:50:24 -0500 |
parents | b938024653ca |
children | fcaf599f308f |
files | jdk/src/share/classes/java/lang/String.java |
diffstat | 1 files changed, 3 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- 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];