Return-Path: Delivered-To: apmail-hc-dev-archive@www.apache.org Received: (qmail 17872 invoked from network); 15 Feb 2009 15:00:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Feb 2009 15:00:56 -0000 Received: (qmail 21181 invoked by uid 500); 15 Feb 2009 15:00:56 -0000 Delivered-To: apmail-hc-dev-archive@hc.apache.org Received: (qmail 21144 invoked by uid 500); 15 Feb 2009 15:00:55 -0000 Mailing-List: contact dev-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list dev@hc.apache.org Received: (qmail 21133 invoked by uid 99); 15 Feb 2009 15:00:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 15 Feb 2009 07:00:55 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of sebbaz@gmail.com designates 74.125.78.145 as permitted sender) Received: from [74.125.78.145] (HELO ey-out-1920.google.com) (74.125.78.145) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 15 Feb 2009 15:00:48 +0000 Received: by ey-out-1920.google.com with SMTP id 13so151441eye.10 for ; Sun, 15 Feb 2009 07:00:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=xdbE00VvvWzkejm+AEn9DFLpR/PoWJ9XZ2EYNye4+lc=; b=f9/F1GLi0gBcwO6dZoyh1SwASp2WOoiMiS9FdgR/Vlcnw032k/MuMe9D/OJWq8nd1N Dcq6YFAImZosPppAwo0CYiTgIwyvJPBES3EIVf4g16IqRJlu5A24QxowLKdztgAd0eoq cA5nSRZR65z/vp5XblhcbPaSr+vRElIZSbeHU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=rZWvGKs7RDRlfFHnB9wHfiEwnmQtsp4sbnK5YCDh+2UPa1olYy725IX2+Ej1Rwdzvb rrWSIXvSL8BikPUmE9cNU6qCqg6XSWXlCHcDB2c04pdt8JsaMzUBAbtcRFAAB8fs8OdM DfhMDxOzEVUQQW/8JphqFtXi6NGJCEileYrN8= MIME-Version: 1.0 Received: by 10.210.13.17 with SMTP id 17mr2602564ebm.148.1234710027857; Sun, 15 Feb 2009 07:00:27 -0800 (PST) In-Reply-To: <49982C4C.3040709@apache.org> References: <25aac9fc0902150519h1199f8cdt1390135833357695@mail.gmail.com> <49981B8E.1080600@apache.org> <25aac9fc0902150618qd46cde5l102b00b7667fbad9@mail.gmail.com> <25aac9fc0902150644y100bbd06j50f0a150a207a716@mail.gmail.com> <49982C4C.3040709@apache.org> Date: Sun, 15 Feb 2009 15:00:27 +0000 Message-ID: <25aac9fc0902150700k47dcae34l9c4920a20550ac3c@mail.gmail.com> Subject: Re: Make BasicHttpProcessor Lists final? From: sebb To: HttpComponents Project Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On 15/02/2009, Oleg Kalnichevski wrote: > sebb wrote: > > > On 15/02/2009, sebb wrote: > > > > > On 15/02/2009, Oleg Kalnichevski wrote: > > > > sebb wrote: > > > > > > > ... > > > > I've committed a fix. > > > > I'm not entirely sure about the behaviour of copyInterceptors() - > > previously it would only update the target if the source was non-null. > > I've changed this to check for size() > 0. > > > > However, this means that the target may not be the same as the source > > - if the source has an empty List, the target List is left untouched. > > > > As far as I can tell, this is the same behaviour as before, but was > > that behaviour correct? > > > > > > This looks wrong. > > > > It won't affect existing calls to the routine since they always pass > > in a newly initialised target, whose lists will be empty. But if the > > (protected) method is used directly, the behaviour may not be what is > > suggested by the method name. > > > > > > Let's fix it. OK, I'll clear the target unconditionally. BTW, I seem to have introduced a bug - or at least I've caused a test to fail: testGracefulShutdown(org.apache.http.impl.nio.reactor.TestDefaultIOReactorsSSL) Time elapsed: 10.781 sec <<< FAILURE! junit.framework.AssertionFailedError: expected:<0> but was:<10> I'll look at that now. > Oleg > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org > For additional commands, e-mail: dev-help@hc.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org For additional commands, e-mail: dev-help@hc.apache.org