...
Confusing overriding and hiding can produce unexpected results.
Rule | Severity | Likelihood | Detectable | RepairableRemediation Cost | Priority | Level |
|---|---|---|---|---|---|---|
MET07-J | Low | Unlikely | Yes | MediumNo | P2 | L3 |
Automated Detection
Automated detection of violations of this rule is straightforward. Automated determination of cases in which method hiding is unavoidable is infeasible. However, determining whether all invocations of hiding or hidden methods explicitly indicate which specific method is invoked is straightforward.
| Tool | Version | Checker | Description | CodeSonar | |||||
|---|---|---|---|---|---|---|---|---|---|
| Include Page | CodeSonar_V | CodeSonar_V | FB.CORRECTNESS.BOA_BADLY_OVERRIDDEN_ADAPTER | Class overrides a method implemented in super class Adapter wrongly||||||
| Parasoft Jtest |
| OOPCERT.MET07.AHSM | Do not hide inherited "static" member methods |
...