Versions Compared

Key

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

...

Rule

Severity

Likelihood

Remediation Cost

Priority

Level

OBJ04-J

medium

probable

medium

P8

L2

Related Guidelines

...

...

Bibliography

...

CWE

CWE-582 "Array Declared Public, Final, and Static,"

 

CWE-493 "Critical Public Variable Without Final Modifier"

 

CWE-500 "Public Static Field Not Marked Final"

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="aa9d5994-941e-404f-a974-6aa056457aa4"><ac:plain-text-body><![CDATA[

[[SCG 2007

AA. Bibliography#SCG 07]]

Guideline 3.1, Treat public static fields as constants

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

Bibliography

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="fc91016f-9ea3-4a41-937d-96781e73df5f"><ac:plain-text-body><![CDATA[

[[FT 2008

AA. Bibliography#FT 08]]

Function Table Class Function Table

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

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="c1387ff8-415e-4056-a995-988cb4160bf9"><ac:plain-text-body><![CDATA[

[[Gong 2003

AA. Bibliography#Gong 03]]

9.3 Static Fields

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

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="31181e09-7389-4bd3-a9fb-fd4b65788339"><ac:plain-text-body><![CDATA[

[[Nisewanger 2007

AA. Bibliography#Nisewanger 07]]

Antipattern 5, Misusing Public Static Variables

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

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="0e8e6a39-08f9-459a-b87f-bed981cd4127"><ac:plain-text-body><![CDATA[

[[Sterbenz 2006

AA. Bibliography#Sterbenz 06]]

Antipattern 5, Misusing Public Static Variables

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

...

OBJ03-J. Sensitive classes must not let themselves be copied      04. Object Orientation (OBJ)      OBJ05-J. Prevent access to partially initialized objects