commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henri Yandell (JIRA)" <j...@apache.org>
Subject [jira] Updated: (BEANUTILS-215) BeanUtilsBean: Set a mapped/indexed property, for example "property(time)[0]"
Date Wed, 15 Nov 2006 00:52:38 GMT
     [ http://issues.apache.org/jira/browse/BEANUTILS-215?page=all ]

Henri Yandell updated BEANUTILS-215:
------------------------------------

    Attachment: BEANUTILS-215.patch

I'm not sure if this is a correct reproduction of this bug, but thought I'd share it as it
does seem to try to do what the poster is asking for and fails.

> BeanUtilsBean: Set a mapped/indexed property, for example "property(time)[0]"
> -----------------------------------------------------------------------------
>
>                 Key: BEANUTILS-215
>                 URL: http://issues.apache.org/jira/browse/BEANUTILS-215
>             Project: Commons BeanUtils
>          Issue Type: Improvement
>          Components: Expression Syntax
>         Environment: Operating System: other
> Platform: Other
>            Reporter: Ludwig Wensauer
>            Priority: Minor
>             Fix For: 1.8.0
>
>         Attachments: BEANUTILS-215.patch
>
>
> From line 1014 ff there is the following piece of code:
>         try {
>             if (index >= 0) {
>                 getPropertyUtils().setIndexedProperty(target, propName,
>                                                  index, newValue);
>             } else if (key != null) {
>                 getPropertyUtils().setMappedProperty(target, propName,
>                                                 key, newValue);
>             } else {
>                 getPropertyUtils().setProperty(target, propName, newValue);
>             }
> ...
> That's good for mapped OR indexed properties, but unfortunatly i have both at
> the same time. So index is >= 0 and key is also != null.
> My property-name looks like this one here: 
> property(time)[0]

-- 
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


Mime
View raw message