Return-Path: Delivered-To: apmail-ant-ivy-user-archive@www.apache.org Received: (qmail 88118 invoked from network); 2 Oct 2009 11:28:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 2 Oct 2009 11:28:28 -0000 Received: (qmail 68056 invoked by uid 500); 2 Oct 2009 11:28:27 -0000 Delivered-To: apmail-ant-ivy-user-archive@ant.apache.org Received: (qmail 68003 invoked by uid 500); 2 Oct 2009 11:28:27 -0000 Mailing-List: contact ivy-user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ivy-user@ant.apache.org Delivered-To: mailing list ivy-user@ant.apache.org Received: (qmail 67992 invoked by uid 99); 2 Oct 2009 11:28:27 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Oct 2009 11:28:27 +0000 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 jaco.uys@gmail.com designates 209.85.222.181 as permitted sender) Received: from [209.85.222.181] (HELO mail-pz0-f181.google.com) (209.85.222.181) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Oct 2009 11:28:17 +0000 Received: by pzk11 with SMTP id 11so985955pzk.14 for ; Fri, 02 Oct 2009 04:27:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:reply-to:date:message-id :subject:from:to:content-type; bh=5+WeR3nqzlfUudvQVkG/Dc0VMmmWkpnxiZxvPnG6GM4=; b=KN1H2wSI0O1bk2/U2f6tpRoAkWOLZsx3RXfE14hb8RWYjPx2toWslqDAftwdD6o69M I1zCB2sPG8jmin63EradW/unSR5f91YWDFpup6Abn9LyFBcHtbQzUM5stSElyQAif13D 24EyetAxul3CifjbKfZQ77bF/nQBUNFIF6LHM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:reply-to:date:message-id:subject:from:to:content-type; b=xW9PzHVjbqXoyiDPi3Oe5THNh4xJcaMAm0BMQ7slzWqzQauQA0FFGocAaJXZWrt+K5 nuj/CwdA7iCq/I+MkbOReQBsESkRQmEbTqRNKbEhC1caAqU1uowB76Hda41simP5uc6A Q3EAwYR2HddvaXTbZe5bGuu6wlmVb9OymDD+o= MIME-Version: 1.0 Received: by 10.142.151.5 with SMTP id y5mr140157wfd.329.1254482876703; Fri, 02 Oct 2009 04:27:56 -0700 (PDT) Reply-To: jaco.uys@gmail.com Date: Fri, 2 Oct 2009 13:27:56 +0200 Message-ID: Subject: possible bug in ChainResolver From: Jaco Uys To: ivy-user@ant.apache.org Content-Type: multipart/mixed; boundary=000e0cd312d63e26510474f20e71 X-Virus-Checked: Checked by ClamAV on apache.org --000e0cd312d63e26510474f20e71 Content-Type: text/plain; charset=ISO-8859-1 Hi, I have found an issue some time ago with resolving dependencies via a chain resolver. I can not remember the exact scenario, but had to do with resolving A -> B -> C where A and C comes from a local repo and B from a 'shared' repo. The issue seems to be with ChainResolver that overrides 'public void setCheckmodified(boolean check)'. The 'checkModified' value is not propagated through to the base class 'AbstractResolver'. This results in the 'AbstractResolver.getCacheOptions(ResolveData data)' behaving incorrectly when creating the 'CacheMetadataOptions'. The fix I made was to change the 'ChainResolver.setCheckmodified' to: public void setCheckmodified(boolean check) { checkmodified = Boolean.valueOf(check); super.setCheckmodified(check); } I've attached an svn patch for it. Regards Jaco --000e0cd312d63e26510474f20e71--