Return-Path: X-Original-To: apmail-xerces-j-dev-archive@www.apache.org Delivered-To: apmail-xerces-j-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D355061D0 for ; Sat, 14 May 2011 17:36:29 +0000 (UTC) Received: (qmail 54022 invoked by uid 500); 14 May 2011 17:36:29 -0000 Delivered-To: apmail-xerces-j-dev-archive@xerces.apache.org Received: (qmail 53989 invoked by uid 500); 14 May 2011 17:36:29 -0000 Mailing-List: contact j-dev-help@xerces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: j-dev@xerces.apache.org Delivered-To: mailing list j-dev@xerces.apache.org Received: (qmail 53981 invoked by uid 99); 14 May 2011 17:36:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 14 May 2011 17:36:29 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 14 May 2011 17:36:27 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 52785CA757 for ; Sat, 14 May 2011 17:35:47 +0000 (UTC) Date: Sat, 14 May 2011 17:35:47 +0000 (UTC) From: "Michael Glavassevich (JIRA)" To: j-dev@xerces.apache.org Message-ID: <1842496974.13316.1305394547318.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Resolved] (XERCESJ-1457) Forgotten calls on intern() for QName fields MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/XERCESJ-1457?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Michael Glavassevich resolved XERCESJ-1457. ------------------------------------------- Resolution: Not A Problem There was no further discussion on this JIRA issue. Resolving as "Not A Problem" as per my previous comments. > Forgotten calls on intern() for QName fields > -------------------------------------------- > > Key: XERCESJ-1457 > URL: https://issues.apache.org/jira/browse/XERCESJ-1457 > Project: Xerces2-J > Issue Type: Bug > Components: Other > Affects Versions: 2.10.0 > Reporter: Stephanie Dietzel > Attachments: interning-fix.patch > > Original Estimate: 5m > Remaining Estimate: 5m > > In the class Qname.java, the documentation states, "To be used correctly, the strings must be identical references for equal strings." > Here are 26 places where a QName is constructed or modifed with non-interned strings. > This is an efficiency concern, because the non-interned strings may take up > more memory than interned ones. It is also a correctness concern, because > Xerces-J performs comparisons against QName fields using ==. > The attached patch corrects these problems. > For example, in XIncludeHandler.java, > new QName( > XMLSymbols.PREFIX_XMLNS, > "", > XMLSymbols.PREFIX_XMLNS + ":", > NamespaceContext.XMLNS_URI) > becomes > new QName( > XMLSymbols.PREFIX_XMLNS, > "", > (XMLSymbols.PREFIX_XMLNS + ":").intern(), > NamespaceContext.XMLNS_URI) -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: j-dev-unsubscribe@xerces.apache.org For additional commands, e-mail: j-dev-help@xerces.apache.org