After a build break, one developer complained it was because the previously available Clazz.clone()
(not the real name of the class :)) has been removed, so his call to clz.clone()
is breaking.
Upon which the author of Clazz
advised that the client code be changed to use new Clazz(clz)
. \
Is there risk in implementing the clone
method to return new Clazz(this)
? What could go wrong?