Wiki Markup |
---|
According to the _Java Language Specification_ (JLS), [§sect;12.4, "Initialization of Classes and Interfaces" |http://java.sun.com/docs/books/jls/third_edition/html/execution.html#12.4] \[[JLS 2005|AA. References#JLS 05]\]: |
...
Wiki Markup |
---|
In other words, the presence of a {{static}} field triggers the initialization of a class. However, a static field could depend on the initialization of another class, possibly creating an initialization cycle. The JLS also states in [§sect;8.3.2.1, "Initializers for Class Variables" |http://java.sun.com/docs/books/jls/third_edition/html/classes.html#8.3.2.1] \[[JLS 2005|AA. References#JLS 05]\] |
...
DCL14-CPP. Avoid assumptions about the initialization order between translation units | ||||
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="28017d12a18e4cc4-b661809b-44e94f83-bb36b1b2-28d479d9f430c79e456d3dd6"><ac:plain-text-body><![CDATA[ | [ISO/IEC TR 24772:2010 | http://www.aitcnet.org/isai/] | Initialization of variables [LAV] | ]]></ac:plain-text-body></ac:structured-macro> |
...
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="c2df66252e2b14c9-89a0945d-428c4a08-87e6a484-8800ff5f8daf846f48c1dd2c"><ac:plain-text-body><![CDATA[ | [[JLS 2005 | AA. References#JLS 05]] | [§8.3.2.1, Initializers for Class Variables | http://java.sun.com/docs/books/jls/third_edition/html/classes.html#8.3.2.1] | ]]></ac:plain-text-body></ac:structured-macro> |
| |||||
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="94a423c497cd556b-ab54b8b8-43ab433b-85dcb73c-2fa56be3696bad236af88030"><ac:plain-text-body><![CDATA[ | [[Bloch 2005 | AA. References#Bloch 05]] | Puzzle 49. Larger than life | ]]></ac:plain-text-body></ac:structured-macro> | |
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="25c91ab843fabf41-80d35fb2-4cac4af0-a0c9bb01-1efd82f30ff07bfe4d9e9dd5"><ac:plain-text-body><![CDATA[ | [[MITRE 2009 | AA. References#MITRE 09]] | [CWE-665 | http://cwe.mitre.org/data/definitions/665.html]. Improper initialization | ]]></ac:plain-text-body></ac:structured-macro> |
...