Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@apache.org Received: (qmail 52168 invoked from network); 7 Nov 2001 10:32:43 -0000 Received: from unknown (HELO osaka.betaversion.org) (192.18.49.133) by daedalus.apache.org with SMTP; 7 Nov 2001 10:32:43 -0000 Received: (qmail 18330 invoked from network); 7 Nov 2001 10:35:22 -0000 Received: from nagoya.betaversion.org (192.18.49.131) by osaka.betaversion.org with SMTP; 7 Nov 2001 10:35:22 -0000 Received: (qmail 15284 invoked by uid 97); 7 Nov 2001 10:32:53 -0000 Delivered-To: qmlist-jakarta-archive-commons-dev@jakarta.apache.org Received: (qmail 15268 invoked by uid 97); 7 Nov 2001 10:32:53 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: 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 15257 invoked from network); 7 Nov 2001 10:32:52 -0000 Message-ID: From: Rey Francois To: 'Jakarta Commons Developers List' Subject: RE: [beanutils][PATCH] PropertyUtils and indexedProperties Date: Wed, 7 Nov 2001 10:40:31 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Try findIndexedPropertyType() ---- Fr. -----Original Message----- From: Tom Klaasen (TeleRelay) [mailto:tom.klaasen@telerelay.com] Sent: 07 November 2001 10:44 To: Jakarta Commons Developers List Subject: RE: [beanutils][PATCH] PropertyUtils and indexedProperties Hmm, fyi, I just looked at the IndexedPropertyDescriptor.getIndexedPropertyType() API, and it doesn't report throwing any exceptions, while IntrospectionException is a checked exception. So I guess your expectation is faulty ;-) tomK > -----Original Message----- > From: Rey Francois [mailto:Francois.Rey@capco.com] > Sent: woensdag 7 november 2001 10:22 > To: 'Jakarta Commons Developers List' > Subject: RE: [beanutils][PATCH] PropertyUtils and indexedProperties > > > Have you actually tried this code? > I've only *briefly* looked into the JDK and BeanUtils code, > so I'm not 100% > sure of this, but it seems to me that your patch may work > when your property > only has non indexed getter/setter based on List, but should > fail if your > property also has indexed getter/setter. In the latter case, > I would expect > the JDK IndexedPropertyDescriptor class to throw an > IntrospectionException("type mismatch between indexed and non-indexed > methods"). Check the source of > IndexedPropertyDescriptor.findIndexedPropertyType(). > > Again, I'm not 100% sure, I would need to test this but I > don't have time at > present... > > Fr. > > -----Original Message----- > From: Tom Klaasen (TeleRelay) [mailto:tom.klaasen@telerelay.com] > Sent: 07 November 2001 09:55 > To: Jakarta Commons Developers List > Subject: [beanutils][PATCH] PropertyUtils and indexedProperties > > > Hi all, > > I found a glitch in the PropertyUtils: you can only get an > indexedProperty if its container is an array. But a java.util.List is > also indexed. So it would be logical to be able to get an element of a > List also as an indexedProperty. > > Hence the patch attached. > > Hope you enjoy it, > > tomK > ************************************************************** > ********** > The information in this email is confidential and is intended solely > for the addressee(s). > Access to this email by anyone else is unauthorised. If you are not > an intended recipient, please notify the sender of this email > immediately. You should not copy, use or disseminate the > information contained in the email. > Any views expressed in this message are those of the individual > sender, except where the sender specifically states them to be > the views of Capco. > http://www.capco.com *********************************************************************** -- To unsubscribe, e-mail: For additional commands, e-mail: -- To unsubscribe, e-mail: For additional commands, e-mail: ************************************************************************ The information in this email is confidential and is intended solely for the addressee(s). Access to this email by anyone else is unauthorised. If you are not an intended recipient, please notify the sender of this email immediately. You should not copy, use or disseminate the information contained in the email. Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Capco. http://www.capco.com *********************************************************************** -- To unsubscribe, e-mail: For additional commands, e-mail: