[ http://issues.apache.org/jira/browse/BEANUTILS-113?page=all ]

Henri Yandell updated BEANUTILS-113:
------------------------------------

      Bugzilla Id:   (was: 32380)
    Fix Version/s: 1.8.0

> [beanutils] Indexed property inside a mapped property cannot be accessed
> ------------------------------------------------------------------------
>
>                 Key: BEANUTILS-113
>                 URL: http://issues.apache.org/jira/browse/BEANUTILS-113
>             Project: Commons BeanUtils
>          Issue Type: Bug
>          Components: Expression Syntax
>    Affects Versions: 1.6
>         Environment: Operating System: All
> Platform: All
>            Reporter: Firepica
>             Fix For: 1.8.0
>
>
> Hi, guys.
> Suppose I have a Map, let's call it "building", inside that map I have an 
> entry
> with key "rooms", which is a Collection. If I try to access room number 20 
> like
> this:
> "building.rooms[20].type" it doesn't work (throws IllegalArgumentException).
> I made a custom implementation of "building" Map so that I can see what param 
> is
> passed to the get() method. Surprisingly I see, that
> PropertyUtilsBean.getInstance().getProperty(bean, name) calls get() method on 
> my
> Map with parameter "rooms[20]" (including index part). 
> This is definitely a bug, because getProperty() should recognize, that "rooms"
> is an indexed property (because it has []), so it should cut off "[20]", call
> get("rooms") and then obtain element with index 20 from the retrieved 
> Collection.
> Please have a look.

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

Reply via email to