Return-Path: Delivered-To: apmail-commons-issues-archive@locus.apache.org Received: (qmail 66650 invoked from network); 28 Oct 2008 19:16:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Oct 2008 19:16:36 -0000 Received: (qmail 64954 invoked by uid 500); 28 Oct 2008 19:16:39 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 64869 invoked by uid 500); 28 Oct 2008 19:16:39 -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 64858 invoked by uid 99); 28 Oct 2008 19:16:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Oct 2008 12:16:39 -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; Tue, 28 Oct 2008 19:15:34 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 3E74B234C238 for ; Tue, 28 Oct 2008 12:15:44 -0700 (PDT) Message-ID: <914090579.1225221344254.JavaMail.jira@brutus> Date: Tue, 28 Oct 2008 12:15:44 -0700 (PDT) From: "Scott Wells (JIRA)" To: issues@commons.apache.org Subject: [jira] Commented: (CONFIGURATION-342) DatabaseConfiguration.copy() loses list/array values In-Reply-To: <87243907.1224689026285.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/CONFIGURATION-342?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12643311#action_12643311 ] Scott Wells commented on CONFIGURATION-342: ------------------------------------------- Okay. I'm pretty slammed with major release planning at work right now after presenting several successful proof-of-concept projects. I'm 99.999% sure that we'll be using Commons Config, and in particular DatabaseConfiguration for shared persistent storage and XMLConfiguration for externalized format (for import/export, revisioning through SCM, etc.). As we get into the productization of that, I'll likely ping you again to chat about how DatabaseConfiguration might evolve to have the same level of expressiveness as HierarchicalConfiguration and what we might do to aid in getting it there. > DatabaseConfiguration.copy() loses list/array values > ---------------------------------------------------- > > Key: CONFIGURATION-342 > URL: https://issues.apache.org/jira/browse/CONFIGURATION-342 > Project: Commons Configuration > Issue Type: Bug > Components: Type conversion > Affects Versions: 1.5 > Reporter: Scott Wells > Attachments: ConfigurationUtil.java > > > I've found a bug where adding a list property to a BaseConfiguration, then copying that full BaseConfiguration to a DatabaseConfiguration, the list is lost and only the first element is copied to the destination DatabaseConfiguration. For example: > BaseConfiguration bc = new BaseConfiguration(); > bc.addProperty("myList", Arrays.asList("1", "2", "3", "4"); > DatabaseConfiguration dc = new DatabaseConfiguration(...); > dc.copy(bc); > List list = dc.getList("myList"); > // At this point, you'll get a single element list containing only "1" -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.