[ 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]