Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 92072 invoked from network); 7 Nov 2006 23:22:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Nov 2006 23:22:01 -0000 Received: (qmail 69305 invoked by uid 500); 7 Nov 2006 23:21:25 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 69246 invoked by uid 500); 7 Nov 2006 23:21:24 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 69215 invoked by uid 99); 7 Nov 2006 23:21:24 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Nov 2006 15:21:24 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Nov 2006 15:21:12 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 4F7987142F5 for ; Tue, 7 Nov 2006 15:20:52 -0800 (PST) Message-ID: <16910188.1162941652323.JavaMail.jira@brutus> Date: Tue, 7 Nov 2006 15:20:52 -0800 (PST) From: "Henri Yandell (JIRA)" To: commons-dev@jakarta.apache.org Subject: [jira] Updated: (BEANUTILS-113) [beanutils] Indexed property inside a mapped property cannot be accessed MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ 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: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org