This site is the archived OWASP Foundation Wiki and is no longer accepting Account Requests.
To view the new OWASP Foundation website, please visit https://owasp.org
Difference between revisions of "Dead Code: Broken Override"
From OWASP
Line 2: | Line 2: | ||
{{Template:Fortify}} | {{Template:Fortify}} | ||
− | [[ | + | __TOC__ |
+ | |||
+ | [[ASDR Table of Contents]] | ||
Last revision (mm/dd/yy): '''{{REVISIONMONTH}}/{{REVISIONDAY}}/{{REVISIONYEAR}}''' | Last revision (mm/dd/yy): '''{{REVISIONMONTH}}/{{REVISIONDAY}}/{{REVISIONYEAR}}''' | ||
− | |||
− | [[ | + | [[Category:FIXME|This is the text from the old template. This needs to be rewritten using the new template.]] |
− | |||
Revision as of 10:38, 30 October 2008
This is a Vulnerability. To view all vulnerabilities, please see the Vulnerability Category page.
Last revision (mm/dd/yy): 10/30/2008
Description
This method fails to override a similar method in its superclass because their parameter lists do not match.
This method declaration looks like an attempt to override a method in a superclass, but the parameter lists do not match, so the superclass method is not overridden.
Risk Factors
TBD
Examples
The class DeepFoundation is meant to override the method getArea() in its parent class, but the parameter lists are out of sync.
public class Foundation { public int getArea() { ... } } class DeepFoundation extends Foundation { public int getArea(int a) { ... } }
Related Attacks
Related Vulnerabilities
Related Controls
Related Technical Impacts
References
TBD