Author: markt
Date: Fri Jan 15 19:44:14 2010
New Revision: 899788
URL: http://svn.apache.org/viewvc?rev=899788&view=rev
Log:
TCK failure. Invalid index should throw PNFE.
Modified:
tomcat/trunk/java/javax/el/ListELResolver.java
Modified: tomcat/trunk/java/javax/el/ListELResolver.java
URL:
http://svn.apache.org/viewvc/tomcat/trunk/java/javax/el/ListELResolver.java?rev=899788&r1=899787&r2=899788&view=diff
==============================================================================
--- tomcat/trunk/java/javax/el/ListELResolver.java (original)
+++ tomcat/trunk/java/javax/el/ListELResolver.java Fri Jan 15 19:44:14 2010
@@ -71,7 +71,8 @@
List<?> list = (List<?>) base;
int idx = coerce(property);
if (idx < 0 || idx >= list.size()) {
- return null;
+ throw new PropertyNotFoundException(
+ new ArrayIndexOutOfBoundsException(idx).getMessage());
}
Object obj = list.get(idx);
return (obj != null) ? obj.getClass() : null;
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]