Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.3
-
None
-
None
Description
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");