views:

44

answers:

1

Hello,

What is the best tool for java's "clone()" method generation in Eclipse Galileo available from repositories? What is the reason, that prevents Eclipse developers from including this tool in standart release?

Thanks for your attention!

+4  A: 

It's very hard to implement clone() right. It is considered not a good practice to do so. Bloch (Effective Java) suggest that using clone() should be avoided. Use other means of shallow cloning, like copy-constructors or utilities like commons-beanutils.

Bozho