aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: clone() not visible ??
 
Similar Threads
immutable wrapper map
Singleton object creation using clone
Cloning
Porting application in JDK1.1 to JDK1.3
Prototype Pattern