|
Status: Draft Weakness ID: 585 (Weakness Variant)Description Summary The software contains an empty synchronized block. Potential Mitigations Attempt to determine what the developer was trying to do, and implement the synchronization accordingly, or remove the empty synchronized block. Demonstrative Examples synchronized(this) { }
Other Notes Synchronization in Java can be tricky. An empty synchronized block is often a sign that a programmer is wrestling with synchronization but has not yet achieved the result they intend. Relationships
Applicable Platforms Languages Java Time of Introduction ImplementationContent History Modifications Eric Dalci. Cigital. 2008-07-01. (External) updated Potential_Mitigations, Time_of_Introduction CWE Content Team. MITRE. 2008-09-08. (Internal) updated Relationships, Other_Notes |
|
|
|||