Return-Path: Delivered-To: apmail-incubator-abdera-dev-archive@locus.apache.org Received: (qmail 31780 invoked from network); 21 Jun 2006 17:17:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 21 Jun 2006 17:17:48 -0000 Received: (qmail 44175 invoked by uid 500); 21 Jun 2006 17:17:46 -0000 Delivered-To: apmail-incubator-abdera-dev-archive@incubator.apache.org Received: (qmail 44123 invoked by uid 500); 21 Jun 2006 17:17:46 -0000 Mailing-List: contact abdera-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: abdera-dev@incubator.apache.org Delivered-To: mailing list abdera-dev@incubator.apache.org Received: (qmail 44070 invoked by uid 99); 21 Jun 2006 17:17:46 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Jun 2006 10:17:46 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of mfncooper@gmail.com designates 64.233.162.206 as permitted sender) Received: from [64.233.162.206] (HELO nz-out-0102.google.com) (64.233.162.206) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Jun 2006 10:17:45 -0700 Received: by nz-out-0102.google.com with SMTP id s18so187703nze for ; Wed, 21 Jun 2006 10:17:24 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:references:x-google-sender-auth; b=FaPt8XSbdhSPOAxDjvCqg4mYA+QjIyPbKPScd11WL51XyIxPM8esDejUjxMIkbatw6DzbdfqzRhKrMOXQisRU0Wbki1DQPUzNpPCa0NAgMNzk5/VeUksE1GkHeslMD/4ktgk+jQi3pwIkjp+o4EuLsaWzrCveMRGZ6j2zOH38ao= Received: by 10.36.147.2 with SMTP id u2mr700138nzd; Wed, 21 Jun 2006 10:17:24 -0700 (PDT) Received: by 10.36.221.23 with HTTP; Wed, 21 Jun 2006 10:17:24 -0700 (PDT) Message-ID: <16d6c6200606211017q763bacf5t217565e129f85700@mail.gmail.com> Date: Wed, 21 Jun 2006 10:17:24 -0700 From: "Martin Cooper" Sender: mfncooper@gmail.com To: abdera-dev@incubator.apache.org Subject: Re: Base.clone() vs Object.clone() In-Reply-To: <7edfeeef0606210930w50f5c366q76af1ab937797228@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_2177_1985349.1150910244776" References: <7edfeeef0606210930w50f5c366q76af1ab937797228@mail.gmail.com> X-Google-Sender-Auth: 4ca59a63babc0de0 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_2177_1985349.1150910244776 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 6/21/06, Garrett Rooney wrote: > > Is there a reason that Abdera's Base interface defines clone as > returning something other than Object? This is not good. Unless something changed in the JLS and I missed it, it is not legal to have two methods on a class or interface whose signatures differ only in the return type. -- Martin Cooper public interface Base extends Cloneable { > > /** > * Serializes the model component out to the specified stream > */ > void writeTo(OutputStream out) throws IOException; > > /** > * Serializes the model component out to the specified writer > */ > void writeTo(Writer writer) throws IOException; > > T clone(); > > Factory getFactory(); > > } > > This seems to be contrary to the way I've always seen clone defined, > and it certainly throws IDEA for a loop, resulting in complaints about > errors in every single class in the model package due to that clash > between Base.clone and Object.clone. > > -garrett > ------=_Part_2177_1985349.1150910244776--