Return-Path: Delivered-To: apmail-ant-notifications-archive@minotaur.apache.org Received: (qmail 14223 invoked from network); 23 Oct 2009 22:10:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 23 Oct 2009 22:10:21 -0000 Received: (qmail 72790 invoked by uid 500); 23 Oct 2009 22:10:21 -0000 Delivered-To: apmail-ant-notifications-archive@ant.apache.org Received: (qmail 72733 invoked by uid 500); 23 Oct 2009 22:10:21 -0000 Mailing-List: contact notifications-help@ant.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ant.apache.org Delivered-To: mailing list notifications@ant.apache.org Received: (qmail 72724 invoked by uid 99); 23 Oct 2009 22:10:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Oct 2009 22:10:21 +0000 X-ASF-Spam-Status: No, hits=-10.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Oct 2009 22:10:19 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 6BF6D234C1EE for ; Fri, 23 Oct 2009 15:09:59 -0700 (PDT) Message-ID: <2113658396.1256335799440.JavaMail.jira@brutus> Date: Fri, 23 Oct 2009 22:09:59 +0000 (UTC) From: "Maarten Coene (JIRA)" To: notifications@ant.apache.org Subject: [jira] Resolved: (IVY-1118) IvyNodeEviction.cleanEvicted has bad comparison logic In-Reply-To: <109630467.1251897032688.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/IVY-1118?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Maarten Coene resolved IVY-1118. -------------------------------- Resolution: Fixed Fix Version/s: trunk Assignee: Maarten Coene Fixed in SVN trunk. Thanks for reporting this! Maarten > IvyNodeEviction.cleanEvicted has bad comparison logic > ----------------------------------------------------- > > Key: IVY-1118 > URL: https://issues.apache.org/jira/browse/IVY-1118 > Project: Ivy > Issue Type: Bug > Components: Core > Affects Versions: 2.1.0-RC2 > Reporter: Dave Brosius > Assignee: Maarten Coene > Priority: Minor > Fix For: trunk > > > clean evicted compares an IvyNode to an IvyNodeEviction which will always be false > private void cleanEvicted() { > // check if it was evicted by a node that we are now the real node for > for (Iterator iter = evicted.keySet().iterator(); iter.hasNext();) { > String rootModuleConf = (String) iter.next(); > EvictionData ed = (EvictionData) evicted.get(rootModuleConf); > Collection sel = ed.getSelected(); > if (sel != null) { > for (Iterator iterator = sel.iterator(); iterator.hasNext();) { > IvyNode n = (IvyNode) iterator.next(); > if (n.getRealNode().equals(this)) { <<<<<<<<<<<<<<<<<<<<<<<< > // yes, we are the real node for a selected one ! > // we are no more evicted in this conf ! > iter.remove(); > } > } > } > } > } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.