You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Charles Honton (JIRA)" <ji...@apache.org> on 2008/05/08 21:55:59 UTC

[jira] Updated: (CONFIGURATION-326) INIConfiguration does not provide a way to get global subset

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

Charles Honton updated CONFIGURATION-326:
-----------------------------------------

    Description: 
There does not appear to be a way to get the global section from INIConfiguration.subset().  As an example,  with the file

; start
default = ok
var1 = default

[]
var1 = empty1
var2 = empty2
; end 

calling INIConfiguration.subset("")  or INIConfiguration.subset(null) returns a Configuration with the contents:
var1 = empty1
var2 = empty2

I expected that INIConfiguration.subset(null) would return a Configuration with the contents:
default = ok
var1 = default


  was:
There does not appear to be a way to get the global section from INIConfiguration.subset().  As an example,  with the file

# start
default = ok
var1 = default

[]
var1 = empty1
var2 = empty2
# end 

calling INIConfiguration.subset("")  or INIConfiguration.subset(null) returns a Configuration with the contents:
var1 = empty1
var2 = empty2

I expected that INIConfiguration.subset(null) would return a Configuration with the contents:
default = ok
var1 = default



> INIConfiguration does not provide a way to get global subset
> ------------------------------------------------------------
>
>                 Key: CONFIGURATION-326
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-326
>             Project: Commons Configuration
>          Issue Type: Bug
>          Components: Documentation, Format
>            Reporter: Charles Honton
>
> There does not appear to be a way to get the global section from INIConfiguration.subset().  As an example,  with the file
> ; start
> default = ok
> var1 = default
> []
> var1 = empty1
> var2 = empty2
> ; end 
> calling INIConfiguration.subset("")  or INIConfiguration.subset(null) returns a Configuration with the contents:
> var1 = empty1
> var2 = empty2
> I expected that INIConfiguration.subset(null) would return a Configuration with the contents:
> default = ok
> var1 = default

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