Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 31655 invoked from network); 6 Nov 2006 04:06:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Nov 2006 04:06:00 -0000 Received: (qmail 11593 invoked by uid 500); 6 Nov 2006 04:06:09 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 11528 invoked by uid 500); 6 Nov 2006 04:06:09 -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 11517 invoked by uid 500); 6 Nov 2006 04:06:09 -0000 Received: (qmail 11514 invoked by uid 99); 6 Nov 2006 04:06:09 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 05 Nov 2006 20:06:09 -0800 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 05 Nov 2006 20:05:57 -0800 Received: by eris.apache.org (Postfix, from userid 65534) id 9F4FF1A9846; Sun, 5 Nov 2006 20:05:30 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r471627 - in /jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils: PropertyUtils.java PropertyUtilsBean.java Date: Mon, 06 Nov 2006 04:05:30 -0000 To: commons-cvs@jakarta.apache.org From: niallp@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20061106040530.9F4FF1A9846@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: niallp Date: Sun Nov 5 20:05:27 2006 New Revision: 471627 URL: http://svn.apache.org/viewvc?view=rev&rev=471627 Log: BEANUTILS-256 - Correct PropertyUtils javadoc to indicate the more general IndexOutOufBoundsException can be thrown (rather than just ArrayIndexOutOufBoundsException) - also re-throw any IndexOutOufBoundsException wrapped in an InvocationTargetException rather than just ArrayIndexOutOufBoundsException - thanks to Torsten Feig Modified: jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/PropertyUtils.java jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/PropertyUtilsBean.java Modified: jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/PropertyUtils.java URL: http://svn.apache.org/viewvc/jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/PropertyUtils.java?view=diff&rev=471627&r1=471626&r2=471627 ============================================================================== --- jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/PropertyUtils.java (original) +++ jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/PropertyUtils.java Sun Nov 5 20:05:27 2006 @@ -201,8 +201,8 @@ * to be extracted * @return the indexed property value * - * @exception ArrayIndexOutOfBoundsException if the specified index - * is outside the valid range for the underlying array + * @exception IndexOutOfBoundsException if the specified index + * is outside the valid range for the underlying property * @exception IllegalAccessException if the caller does not have * access to the property accessor method * @exception IllegalArgumentException if bean or @@ -233,8 +233,8 @@ * @param index Index of the property value to be extracted * @return the indexed property value * - * @exception ArrayIndexOutOfBoundsException if the specified index - * is outside the valid range for the underlying array + * @exception IndexOutOfBoundsException if the specified index + * is outside the valid range for the underlying property * @exception IllegalAccessException if the caller does not have * access to the property accessor method * @exception IllegalArgumentException if bean or @@ -667,8 +667,8 @@ * @param value Value to which the specified property element * should be set * - * @exception ArrayIndexOutOfBoundsException if the specified index - * is outside the valid range for the underlying array + * @exception IndexOutOfBoundsException if the specified index + * is outside the valid range for the underlying property * @exception IllegalAccessException if the caller does not have * access to the property accessor method * @exception IllegalArgumentException if bean or @@ -700,8 +700,8 @@ * @param index Index of the property value to be set * @param value Value to which the indexed property element is to be set * - * @exception ArrayIndexOutOfBoundsException if the specified index - * is outside the valid range for the underlying array + * @exception IndexOutOfBoundsException if the specified index + * is outside the valid range for the underlying property * @exception IllegalAccessException if the caller does not have * access to the property accessor method * @exception IllegalArgumentException if bean or Modified: jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/PropertyUtilsBean.java URL: http://svn.apache.org/viewvc/jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/PropertyUtilsBean.java?view=diff&rev=471627&r1=471626&r2=471627 ============================================================================== --- jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/PropertyUtilsBean.java (original) +++ jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/PropertyUtilsBean.java Sun Nov 5 20:05:27 2006 @@ -306,8 +306,8 @@ * to be extracted * @return the indexed property value * - * @exception ArrayIndexOutOfBoundsException if the specified index - * is outside the valid range for the underlying array + * @exception IndexOutOfBoundsException if the specified index + * is outside the valid range for the underlying array or List * @exception IllegalAccessException if the caller does not have * access to the property accessor method * @exception IllegalArgumentException if bean or @@ -362,8 +362,8 @@ * @param index Index of the property value to be extracted * @return the indexed property value * - * @exception ArrayIndexOutOfBoundsException if the specified index - * is outside the valid range for the underlying array + * @exception IndexOutOfBoundsException if the specified index + * is outside the valid range for the underlying property * @exception IllegalAccessException if the caller does not have * access to the property accessor method * @exception IllegalArgumentException if bean or @@ -415,8 +415,8 @@ return (invokeMethod(readMethod,bean, subscript)); } catch (InvocationTargetException e) { if (e.getTargetException() instanceof - ArrayIndexOutOfBoundsException) { - throw (ArrayIndexOutOfBoundsException) + IndexOutOfBoundsException) { + throw (IndexOutOfBoundsException) e.getTargetException(); } else { throw e; @@ -1415,8 +1415,8 @@ * @param value Value to which the specified property element * should be set * - * @exception ArrayIndexOutOfBoundsException if the specified index - * is outside the valid range for the underlying array + * @exception IndexOutOfBoundsException if the specified index + * is outside the valid range for the underlying property * @exception IllegalAccessException if the caller does not have * access to the property accessor method * @exception IllegalArgumentException if bean or @@ -1472,8 +1472,8 @@ * @param index Index of the property value to be set * @param value Value to which the indexed property element is to be set * - * @exception ArrayIndexOutOfBoundsException if the specified index - * is outside the valid range for the underlying array + * @exception IndexOutOfBoundsException if the specified index + * is outside the valid range for the underlying property * @exception IllegalAccessException if the caller does not have * access to the property accessor method * @exception IllegalArgumentException if bean or @@ -1536,8 +1536,8 @@ invokeMethod(writeMethod, bean, subscript); } catch (InvocationTargetException e) { if (e.getTargetException() instanceof - ArrayIndexOutOfBoundsException) { - throw (ArrayIndexOutOfBoundsException) + IndexOutOfBoundsException) { + throw (IndexOutOfBoundsException) e.getTargetException(); } else { throw e; --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org