Return-Path: Delivered-To: apmail-commons-issues-archive@locus.apache.org Received: (qmail 98821 invoked from network); 11 Jun 2008 23:59:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Jun 2008 23:59:07 -0000 Received: (qmail 51171 invoked by uid 500); 11 Jun 2008 23:59:08 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 51111 invoked by uid 500); 11 Jun 2008 23:59:08 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 51100 invoked by uid 99); 11 Jun 2008 23:59:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Jun 2008 16:59:08 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED 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; Wed, 11 Jun 2008 23:58:27 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 08B76234C138 for ; Wed, 11 Jun 2008 16:58:45 -0700 (PDT) Message-ID: <736301396.1213228725034.JavaMail.jira@brutus> Date: Wed, 11 Jun 2008 16:58:45 -0700 (PDT) From: "Matt Benson (JIRA)" To: issues@commons.apache.org Subject: [jira] Resolved: (JXPATH-123) Regression: "fix" made to NamespaceResolver broke existing testcases In-Reply-To: <617693414.1213228245148.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/JXPATH-123?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Matt Benson resolved JXPATH-123. -------------------------------- Resolution: Fixed svn rev 666910 > Regression: "fix" made to NamespaceResolver broke existing testcases > --------------------------------------------------------------------- > > Key: JXPATH-123 > URL: https://issues.apache.org/jira/browse/JXPATH-123 > Project: Commons JXPath > Issue Type: Bug > Affects Versions: 1.2 Final > Reporter: Matt Benson > Fix For: 1.3 > > > Relatively shortly after introducing NamespaceResolver, Dmitri had changed it to wipe out the reverse mapping cache every time a new mapping was added. The tests, however, relied upon the last added mapping to a given namespace being the preferred prefix. The description for his change was that he was fixing a "bug", but since he didn't elaborate on what kind of bug I can't see how maintaining the cache is any more harmful than not maintaining it, and reverting this change clears up the test failures that for some reason are only seen on JDK 1.3. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.