8256679: Update serialization javadoc once JOSS changes for records are complete

Reviewed-by: chegar, rriggs
This commit is contained in:
Julia Boes 2020-12-07 09:30:52 +00:00
parent 7620124ee9
commit d05401d886
5 changed files with 24 additions and 50 deletions

View file

@ -139,6 +139,12 @@ package java.io;
* serialization and deserialization. Any declarations of the special
* handling methods discussed above are ignored for enum types.<p>
*
* Record classes can implement {@code Serializable} and receive treatment defined
* by the <a href="{@docRoot}/../specs/serialization/serial-arch.html#serialization-of-records">
* <cite>Java Object Serialization Specification,</cite> Section 1.13,
* "Serialization of Records"</a>. Any declarations of the special
* handling methods discussed above are ignored for record types.<p>
*
* The serialization runtime associates with each serializable class a version
* number, called a serialVersionUID, which is used during deserialization to
* verify that the sender and receiver of a serialized object have loaded