Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6D54177A2 for ; Thu, 15 Dec 2011 11:51:03 +0000 (UTC) Received: (qmail 85092 invoked by uid 500); 15 Dec 2011 11:51:03 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 85029 invoked by uid 500); 15 Dec 2011 11:51:03 -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 85021 invoked by uid 99); 15 Dec 2011 11:51:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Dec 2011 11:51:03 +0000 X-ASF-Spam-Status: No, hits=-2001.5 required=5.0 tests=ALL_TRUSTED,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; Thu, 15 Dec 2011 11:50:52 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 95D771145F5 for ; Thu, 15 Dec 2011 11:50:30 +0000 (UTC) Date: Thu, 15 Dec 2011 11:50:30 +0000 (UTC) From: "Raimund Klein (Updated) (JIRA)" To: issues@commons.apache.org Message-ID: <76713614.15155.1323949830615.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <708510356.15118.1323948990644.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (CONFIGURATION-472) SubnodeConfigurations returned by XMLConfiguration should convert added nodes to XML nodes. 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/CONFIGURATION-472?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Raimund Klein updated CONFIGURATION-472: ---------------------------------------- Description: Problem description: XMLConfiguration's configuration(s)At return regular SubnodeConfigurations which can't "really" be used for adding nodes as these won't be converted into XMLConfiguration's internal XMLNodes. More precisely, when using the SubnodeConfiguration for adding, accesses to the main XMLConfiguration can run into ClassCastExceptions later on. Workaround: Add the created nodes directly to the main XMLConfiguration (e.g. with the appropriate XPath), as this configuration's add methods convert these into the internal form. Proposed Solution: Let XMLConfiguration's configuration(s)At methods return a subclass of SubnodeConfiguration whose add methods will perform the same node conversion. Consequently, this new class' SubnodeConfigurations returned by configuration(s)At should be instances of the very same class. was: Problem description: XMLConfiguration's configuration(s)At return regular SubnodeConfigurations which can't "really" be used for adding nodes as these won't be converted into XMLConfiguration's internal XMLNodes. More precisely, when using the SubnodeConfiguration for adding, accesses to the main XMLConfiguration can run into ClassCastExceptions later on. Workaround: Add the created nodes directly to the main XMLConfiguration (e.g. with the appropriate XPath), as this configuration's add methods convert these into the internal form. Proposed Solution: Let XMLConfiguration's configuration(s)At methods return a subclass of SubnodeConfiguration, whose add methods will perform the same node conversion. Consequently, this new class' SubnodeConfigurations returned by configuration(s)At should be instances of the very same class. > SubnodeConfigurations returned by XMLConfiguration should convert added nodes to XML nodes. > ------------------------------------------------------------------------------------------- > > Key: CONFIGURATION-472 > URL: https://issues.apache.org/jira/browse/CONFIGURATION-472 > Project: Commons Configuration > Issue Type: Improvement > Affects Versions: 1.7 > Reporter: Raimund Klein > Priority: Minor > > Problem description: XMLConfiguration's configuration(s)At return regular SubnodeConfigurations which can't "really" be used for adding nodes as these won't be converted into XMLConfiguration's internal XMLNodes. More precisely, when using the SubnodeConfiguration for adding, accesses to the main XMLConfiguration can run into ClassCastExceptions later on. > Workaround: Add the created nodes directly to the main XMLConfiguration (e.g. with the appropriate XPath), as this configuration's add methods convert these into the internal form. > Proposed Solution: Let XMLConfiguration's configuration(s)At methods return a subclass of SubnodeConfiguration whose add methods will perform the same node conversion. Consequently, this new class' SubnodeConfigurations returned by configuration(s)At should be instances of the very same class. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira