Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.6
-
None
Description
Setting section properties of previously non-existent Sections using getSection().setProperty() fails.
Using a non existing filename for f, the following produces an empty file.
ini = HierarchicalINIConfiguration(f)
section = ini.getSection("section")
section.setProperty("foo", "bar")
ini.save()
Accessing SubnodeConfigurations after clearing them fails.
using an existing file with an existing section, produces an empty file.
ini = new HierarchicalINIConfiguration(f);
subnode = ini.getSection("section");
if (! subnode.isEmpty() ) {
subnode.clear();
}
subnode.setProperty("foo", "bar");
ini.save();
Attachments
Attachments
Issue Links
- depends upon
-
CONFIGURATION-458 SubnodeConfiguration.clear() does not work correctly
- Closed