Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: REM cost reform

...

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.

Class overrides a method implemented in super class Adapter wrongly
ToolVersionCheckerDescriptionCodeSonar
Include Page
CodeSonar_VCodeSonar_VFB.CORRECTNESS.BOA_BADLY_OVERRIDDEN_ADAPTER
Parasoft Jtest
Include Page
Parasoft_V
Parasoft_V
OOPCERT.MET07.AHSMDo not hide inherited "static" member methods

...