Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Invalid
-
1.6
-
None
Description
When using OverrideCombiner it seems to ignore any list nodes and always return properties/values for list node from the overridden file. See the attached files for an example of what I mean. The following code always returns the values from config-custom even if list-nodes mentions that the sysprops node is a list-node.
URL fileURL = TestConfig.class.getResource("config-conf.xml");
try
{ DefaultConfigurationBuilder configBuilder = new DefaultConfigurationBuilder(fileURL); CombinedConfiguration config = configBuilder.getConfiguration(true); System.out.println(config.getString("sysprops/testkey")); System.out.println(config.getString("configprops/testkey1")); }catch (ConfigurationException e)
{ e.printStackTrace(); }