CWE-1042 — Static Member Data Element outside of a Singleton Class Element
CWE-1042: Static Member Data Element outside of a Singleton Class Element
MITRE CWE weakness
| Kind | Weakness |
| Abstraction | Variant |
| Status | Incomplete |
| Likelihood of exploit | — |
Description
The code contains a member element that is declared as static (but not final), in which its parent class element is not a singleton class - that is, a class element that can be used only once in the 'to' association of a Create action.
Common consequences
- Other: Reduce Performance
Mitigations
(none listed)
References
- CWE page: https://cwe.mitre.org/data/definitions/1042.html
- CWE list: https://cwe.mitre.org/data/index.html