You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "Oliver Heger (JIRA)" <ji...@apache.org> on 2006/10/30 21:53:17 UTC

[jira] Resolved: (CONFIGURATION-235) variable interpolation problem

     [ http://issues.apache.org/jira/browse/CONFIGURATION-235?page=all ]

Oliver Heger resolved CONFIGURATION-235.
----------------------------------------

    Fix Version/s: Nightly Builds
       Resolution: Fixed

Should be fixed in the next nightly builds. Thank you for spotting this.

> variable interpolation problem
> ------------------------------
>
>                 Key: CONFIGURATION-235
>                 URL: http://issues.apache.org/jira/browse/CONFIGURATION-235
>             Project: Commons Configuration
>          Issue Type: Bug
>    Affects Versions: 1.3 Final
>            Reporter: juergen schad
>             Fix For: Nightly Builds
>
>
> interpolation of variables in Subsets doesn't work, if they are _not_ accessed via getString(). The following
> example illustrates the problem:
> BaseConfiguration oBase = new BaseConfiguration();
> oBase.addProperty( "a.b", new Integer(2) );
> oBase.addProperty( "a.c", "${a.b}" );
> // as expected: 2
> int iValueBaseConfig = oBase.getInt( "a.c" );
> String strValueBaseConfig = oBase.getString("a.c");
> // as expected: 2
> String strValueSubset = oBase.subset("a").getString("c");
> // ConversionException, 'c' doesn't map to an Integer object
> int iValueSubset = oBase.subset("a").getInt("c");

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org