XMLConfiguration drops attributes if a property value is a list
---------------------------------------------------------------

                 Key: CONFIGURATION-263
                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-263
             Project: Commons Configuration
          Issue Type: Bug
    Affects Versions: 1.4
            Reporter: Oliver Heger
             Fix For: 1.5


When the following test is run with the following xml the second assertEquals 
statement fails:

XML:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<test>
<a name="X">ABC</a>
<a name="Y">1,2,3</a>
</test

TEST:
public void testXMLConfig() throws Exception {
  File file = new File("/xml/xmlConfigTest.xml");

  XMLConfiguration xmlConfig = new XMLConfiguration(file);
  xmlConfig.load();

  assertEquals("X",xmlConfig.getProperty("a(0)[EMAIL PROTECTED]"));
  assertEquals("Y",xmlConfig.getProperty("a(1)[EMAIL PROTECTED]"));
}


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to