commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From robert burrell donkin <robertburrelldon...@blueyonder.co.uk>
Subject Re: [BeanUtils] How to set a mapped property when the key contains dots?
Date Mon, 25 Aug 2003 20:00:38 GMT
hi

this does look like a a similar issue to #10478.

could try again with a build from CVS HEAD or a recent nightly?

if this is still an issue, then could you please supply a unit test that 
demonstrates this bug which you are willing to donate to the ASF.

- robert

On Monday, August 25, 2003, at 02:52 PM, flaviotordini@tin.it wrote:

> sorry i forgot to include a stacktrace. here it is:
>
> java.lang.IllegalArgumentException: Invalid mapped property 'environment(
> java'
>         at
> org.apache.commons.beanutils.PropertyUtils.getMappedProperty
> (PropertyUtils.java:546)
>         at
> org.apache.commons.beanutils.PropertyUtils.getNestedProperty
> (PropertyUtils.java:730)
>         at
> org.apache.commons.beanutils.PropertyUtils.getProperty(PropertyUtils.java:
> 783)
>         at
> org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:793)
>
>
> is this bug the same of bugzilla #10478??? (that bug is marked as 
> RESOLVED...)
>
> flavio
>
> On Monday 25 August 2003 12:40, flaviotordini@tin.it wrote:
>> hi all,
>> i'm using BeanUtils.setProperty() inside my application. When property is
>> mapped and the key contains dots, beanutils thinks the key has nested
>> properties (which is non-sense to me). Is there a way to escape dots? Why
>> beanutils tries to access nested properties in a String-based key? Is 
>> this
>> a bug?
>>
>> example:
>> environment(java.naming.factory.initial)
>>
>> btw: the app is called XFP
>> http://xfp.sourceforge.net
>
> --
> ()  ascii ribbon campaign - against html mail
> /\                        - against microsoft attachments
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>


Mime
View raw message