Defender-methods: A chance to finally retrofit Cloneable with clone method?

Artur Biesiadowski abies at adres.pl
Wed Aug 10 00:50:30 PDT 2011


On 10/08/2011 06:50, Gernot Neppert wrote:
> Well, now (with defender methods) we can retrofit it!
>

How are you going to do it to keep following class compiling ?

public class Test implements Cloneable{
     protected Object clone() {
         return new Test();
     }
}

Regards,
Artur Biesiadowski



More information about the coin-dev mailing list