commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jörg Schaible <Joerg.Schai...@scalaris.com>
Subject RE: [Configuration] Bug with XMLConfiguration and getString() ...?!
Date Wed, 29 Oct 2008 16:05:02 GMT
Grimm, Markus wrote:
> Hi guys,
> 
> I've got the following problem:
> I've got a xml-config-file with that content:
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <config>
> 	...
> 	<sftp>
> 		<host>myhost</host>
> 		<port>22</port>
> 		<user>testuser</user>
> 		<pass>08,15</pass>
> 	</sftp>
> 	...
> </config>
> 
> In my application I get the info about pass f.e. like this
> 
> String pass = xml_config.getString("sftp.pass");
> 
> value of pass: '08' and not '08,15'
> 
> I know, that ',' is the default-decollator für list-entries,
> but I think it shouldn't affect the getString()-Method ?!
> So it might be a bug?!

Actually, it works as designed. getString() delivers the first list entry. And I am sure,
that quite everyone will consider this as a bug ... it makes no sense to me either :-/

- Jörg

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


Mime
View raw message