File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "clone() not visible ??" Watch "clone() not visible ??" New topic

clone() not visible ??

henry wu

Joined: Dec 01, 2000
Posts: 23
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 wu

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.
subject: clone() not visible ??
jQuery in Action, 3rd edition