Threads should not be Cloneable

Rémi Forax forax at univ-mlv.fr
Fri Aug 13 14:30:46 UTC 2010


Le 13/08/2010 16:15, Chris Hegarty a écrit :
> 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

Knowning that the default implementation doesn't work for Thread,
it seems a reasonable choice.

Rémi



More information about the core-libs-dev mailing list