commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "fragfutter (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CONFIGURATION-455) HierachicalINIConfiguration section access without dotted notation
Date Wed, 20 Jul 2011 15:56:57 GMT

     [ https://issues.apache.org/jira/browse/CONFIGURATION-455?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

fragfutter updated CONFIGURATION-455:
-------------------------------------

    Attachment: BugTest.java

Bug Example

> HierachicalINIConfiguration section access without dotted notation
> ------------------------------------------------------------------
>
>                 Key: CONFIGURATION-455
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-455
>             Project: Commons Configuration
>          Issue Type: Bug
>          Components: Expression engine
>    Affects Versions: 1.6
>            Reporter: fragfutter
>         Attachments: BugTest.java
>
>
> 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();

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message