wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes clone() not visible ?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "clone() not visible ??" Watch "clone() not visible ??" New topic
Author

clone() not visible ??

henry wu
Greenhorn

Joined: Dec 01, 2000
Posts: 23
Hi,
I'm trying to use the clone() method and I'm getting this error message :
The method clone() from the type java.lang.Object is not visible.
I'm added the "implements Cloneable" to the base class and the subclass of the object created. Any suggestions?
Henry
henry wu
Greenhorn

Joined: Dec 01, 2000
Posts: 23
I have to add that in the class that I'm trying to clone I have :
public Object clone() throws CloneNotSupportedException {
return super.clone();
}
I'll try replacing return super.clone(); with some code and see what happens.
 
wood burning stoves
 
subject: clone() not visible ??