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 "Code Correctness: Class Does Not Implement Cloneable"

From OWASP
Jump to: navigation, search
Line 1: Line 1:
 +
{{Template: Stub}}
 
{{Template:Vulnerability}}
 
{{Template:Vulnerability}}
 
{{Template:Fortify}}
 
{{Template:Fortify}}
{{Template: Stub}}
+
 
Last revision (mm/dd/yy): '''{{REVISIONMONTH}}/{{REVISIONDAY}}/{{REVISIONYEAR}}'''
 
 
__TOC__
 
__TOC__
  
[[ASDR_TOC_Vulnerabilities|Vulnerabilities Table of Contents]]
+
[[ASDR Table of Contents]]
 +
 
 +
Last revision (mm/dd/yy): '''{{REVISIONMONTH}}/{{REVISIONDAY}}/{{REVISIONYEAR}}'''
  
[[ASDR Table of Contents]]
 
  
 
[[Category:FIXME|Stub article, needs review]]
 
[[Category:FIXME|Stub article, needs review]]
Line 94: Line 95:
 
[[Category:Code Snippet]]
 
[[Category:Code Snippet]]
 
[[Category:OWASP ASDR Project]]
 
[[Category:OWASP ASDR Project]]
 +
[[Category:Vulnerability]]

Revision as of 11:55, 29 October 2008

This article is a stub. You can help OWASP by expanding it or discussing it on its Talk page.


This is a Vulnerability. To view all vulnerabilities, please see the Vulnerability Category page.

This article includes content generously donated to OWASP by MicroFocus Logo.png

ASDR Table of Contents

Last revision (mm/dd/yy): 10/29/2008

Description

This class implements a clone() method but does not implement Cloneable.

It appears that the programmer intended for this class to implement the Cloneable interface because it implements a method named clone(). However, the class does not implement the Cloneable interface and the clone() method will not behave correctly.


Risk Factors

TBD

Examples

Calling clone() for this class will result in a CloneNotSupportedException.

	public class Kibitzer {
	  public Object clone() throws CloneNotSupportedException {
		... 
	  }
	}

Related Attacks


Related Vulnerabilities


Related Controls


Related Technical Impacts


References

TBD