tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r899788 - /tomcat/trunk/java/javax/el/ListELResolver.java
Date Fri, 15 Jan 2010 19:44:15 GMT
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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message