commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 33814] New: - [configuration] Loading a configuration twice creates duplicate properties
Date Wed, 02 Mar 2005 18:18:10 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=33814>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=33814

           Summary: [configuration] Loading a configuration twice creates
                    duplicate properties
           Product: Commons
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Configuration
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: ebourg@apache.org


The file configurations are not cleared when the source is loaded, thus if the
configuration is loaded twice, we end up with duplicate properties.

    public void testDoubleLoading() throws Exception
    {
        FileConfiguration config = new PropertiesConfiguration();
        config.setFileName("conf/test.properties");
        config.load();
        config.load();

        assertEquals("Number of elements in the 'test.integer.array' list", 2,
config.getList("test.integer.array").size());
    }

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message