Versions Compared

Key

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

...

Wiki Markup
In this noncompliant code example \[[Bloch 2005|AA. Bibliography#BlochReferences#Bloch 05]\], a class with singleton semantics uses the default serialized form, which fails to enforce any implementation-defined invariants. Consequently, malicious code can create a second instance even though the class should have only a single instance. For purposes of this example, we assume that the class contains only nonsensitive data.

...

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="6bd015eb81c18bf7-b26c7fe0-4cf44a68-9cfb889c-95cb5411234f53c4e52dc6e0"><ac:plain-text-body><![CDATA[

[[API 2006

AA. Bibliography#API 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="68d8e3eab247703a-c06c97fc-45a644e8-b538b5d1-dc0f1a4cb7479f708eb50287"><ac:plain-text-body><![CDATA[

[[Bloch 2008

AA. Bibliography#Bloch 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="b854160a864fac7b-59256c4f-40a24ec1-bf11830b-5525dabaa904609f0d6dfdcd"><ac:plain-text-body><![CDATA[

[[Greanier 2000

AA. Bibliography#Greanier 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="53c237d019bcc211-cafed424-46914bba-8e039438-1235082353875458d695b712"><ac:plain-text-body><![CDATA[

[[Harold 1999

AA. Bibliography#Harold 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="24cbd510f8941f10-b573377f-455443b3-83da8cfd-3535f108bc13f90d4fe2b3f7"><ac:plain-text-body><![CDATA[

[[Hawtin 2008

AA. Bibliography#Hawtin References#Hawtin 08]]

Antipattern 8. Believing deserialisation is unrelated to construction

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

...