...
In this compliant solution ...
, in native code, object references are tested for object equality using the IsSameObject()
function, and the object references tested are global references.
Code Block | ||
---|---|---|
| ||
...
Rule | Severity | Likelihood | Remediation Cost | Priority | Level |
---|---|---|---|---|---|
JNI02-J | Low | Probable | High | P2 | L3 |
Automated Detection
Although it may be possible to automatically detect the use of == or != for comparing object references in native code, in general automatic detection of the wider issue is not feasible. [Is it?]
...
...