Threads should not be Cloneable

Chris Hegarty chris.hegarty at oracle.com
Fri Aug 13 14:15:53 UTC 2010


On 13/08/2010 15:12, tom.hawtin at oracle.com wrote:
> On 13/08/2010 14:58, Chris Hegarty wrote:
>
>> protected final Object clone() throws CloneNotSupportedException {
>> throw new CloneNotSupportedException();
>
> The final can (and should, IMO) be removed.

OK, so we'll allow subclasses to crate their own clones but disallow 
access to the default Object.clone implementation. I don't have a 
particular problem with this.

-Chris.

>
> Tom



More information about the core-libs-dev mailing list