...
Initialization cycles may lead to unexpected results.
Rule | Severity | Likelihood | Detectable | RepairableRemediation Cost | Priority | Level |
|---|---|---|---|---|---|---|
DCL00-J | Low | Unlikely | Yes | MediumNo | P2 | L3 |
Automated Detection
| Tool | Version | Checker | Description | |||||||
|---|---|---|---|---|---|---|---|---|---|---|
| CodeSonar |
| FB.STYLE.IC_INIT_CIRCULARITY | Initialization circularityJAVA.STRUCT.SE.ASSERT JAVA.STRUCT.UA JAVA.STRUCT.UA.DEFAULT | Assertion contains side effects Useless assignment Useless assignment to default | ||||||
| Parasoft Jtest |
| GLOBALCERT.DCL00.ACD | Ensure that files do not contain cyclical dependencies | |||||||
| PVS-Studio |
| V6050 | ||||||||
| SonarQube |
| Classes should not access their own subclasses during initialization |
...
VOID DCL14-CPP. Avoid assumptions about the initialization order between translation units | |
| ISO/IEC TR 24772:2010 | Initialization of Variables [LAV] |
CWE-665, Improper Initialization |
...