Return-Path: Delivered-To: apmail-commons-issues-archive@locus.apache.org Received: (qmail 13312 invoked from network); 23 Sep 2007 16:37:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Sep 2007 16:37:16 -0000 Received: (qmail 90329 invoked by uid 500); 23 Sep 2007 16:37:06 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 90243 invoked by uid 500); 23 Sep 2007 16:37:06 -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 90234 invoked by uid 99); 23 Sep 2007 16:37:05 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 23 Sep 2007 09:37:05 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 23 Sep 2007 16:39:22 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 2EE4A714209 for ; Sun, 23 Sep 2007 09:36:52 -0700 (PDT) Message-ID: <10345261.1190565412188.JavaMail.jira@brutus> Date: Sun, 23 Sep 2007 09:36:52 -0700 (PDT) From: "Oliver Heger (JIRA)" To: issues@commons.apache.org Subject: [jira] Updated: (CONFIGURATION-271) BaseConfiguration duplicates multi value keys values 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-271?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Oliver Heger updated CONFIGURATION-271: --------------------------------------- Priority: Minor (was: Major) Fix Version/s: (was: 1.5) 1.6 Assignee: (was: Emmanuel Bourg) Issue Type: New Feature (was: Bug) So far all our configurations have bag semantics, i.e. a value can occur multiple times for a single property. If I understand this ticket correctly, you basically want to introduce set semantics, i.e. the values of a single property are unique. It should be possible to switch between the different modes. I think, this is a good idea and certainly makes sense for certain use cases. However, implementing this feature in a clean way won't be a trivial task. Multiple configuration base classes will be affected. Because of that we probably won't be able to get this into the next release. So I am setting the fix version to 1.6 > BaseConfiguration duplicates multi value keys values > ---------------------------------------------------- > > Key: CONFIGURATION-271 > URL: https://issues.apache.org/jira/browse/CONFIGURATION-271 > Project: Commons Configuration > Issue Type: New Feature > Affects Versions: 1.4 > Reporter: Daniel Adrian > Priority: Minor > Fix For: 1.6 > > > In addPropertyDirect(String key, Object value) the method adds the new value to the property. > If the property has the same value in the list, it will get duplicated. > The method should check if the list contains the value and only if the result is false add the value. > There is no logic in saving a multi value key with more than one instance of a value. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.