Hi,
I have a Java object (ThirdPartyClass) that does not have the clone() method exposed. Is there a simpler way in java to clone or in other words get a copy of this object?
Could be, but in that case I'd examine the reasons for that and think if I'm doing it ok. When you find something hard to do in Java, generally is because you didn't focus the problem in the rigth way.
Yeah if the class isn't finalized then you could subclass and reflect itself back to the caller. But tim is right, this is a third party component, my bad.
I am totally curious as to why the clone needs to exist.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.