Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Validating deserialized objects establishes that the object state is within defined limits and ensures that all transient and static fields have their default secure values. However, fields that are declared final and contain with a constant value will contain the proper value rather than the default still contain that value after serialization. For example, the value of the field private transient final n = 42 will be 42 after deserialization rather than 0. Deserialization produces default values for all other cases.

...

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="2d995e7e480ac73f-d67e2621-4fa94850-8cd3b1c4-f3f562c0e035942fc71d8f36"><ac:plain-text-body><![CDATA[

[[API 2006

AA. References#API 06]]

Class Object, Class Hashtable

]]></ac:plain-text-body></ac:structured-macro>

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="bec08fd9f4fc85ad-09e102ed-43174955-8bc89ae3-27e4cea6af225691d228c67e"><ac:plain-text-body><![CDATA[

[[Bloch 2008

AA. References#Bloch 08]]

Item 75, Consider using a custom serialized form

]]></ac:plain-text-body></ac:structured-macro>

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="4f157e62bd6d334e-1ad00cdc-48544553-a4f99efe-08c2cb8ee1aa89f8a9e870f3"><ac:plain-text-body><![CDATA[

[[Greanier 2000

AA. References#Greanier 00]]

 

]]></ac:plain-text-body></ac:structured-macro>

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="3ad1efbf1d8b4024-f86cd2a2-48c8428c-a3b485f4-4da752682eb765279cfe73f2"><ac:plain-text-body><![CDATA[

[[Harold 1999

AA. References#Harold 99]]

Chapter 11, Object Serialization, Validation

]]></ac:plain-text-body></ac:structured-macro>

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="5b220bbd6421b88f-72d23ee2-40194d79-9586bd18-a9e055a17c912bdb82d89f90"><ac:plain-text-body><![CDATA[

[[Hawtin 2008

AA. References#Hawtin 08]]

Antipattern 8. Believing deserialisation is unrelated to construction

]]></ac:plain-text-body></ac:structured-macro>

...