...
Failure to prevent the overwriting of an externalizable object can corrupt the state of the object.
Rule | Severity | Likelihood |
|---|
Detectable | Repairable | Priority | Level |
|---|---|---|---|
SER11-J | Low | Probable |
No | No |
P2 |
L3 |
Automated Detection
| Tool | Version | Checker | Description |
|---|---|---|---|
| Parasoft Jtest |
| CERT.SER11.IRX | Avoid re-initializing fields in the 'readExternal()' method of 'Externalizable' classes |
Bibliography
[API 2014] |
[Sun 2006] | Serialization Specification, A.7, Preventing Overwriting of Externalizable Objects |
...
...