commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hen...@apache.org
Subject svn commit: r814633 - /commons/proper/jexl/trunk/src/main/java/org/apache/commons/jexl/util/ListGetExecutor.java
Date Mon, 14 Sep 2009 13:25:05 GMT
Author: henrib
Date: Mon Sep 14 13:25:05 2009
New Revision: 814633

URL: http://svn.apache.org/viewvc?rev=814633&view=rev
Log:
fix tryExecute which was not using the index argument

Modified:
    commons/proper/jexl/trunk/src/main/java/org/apache/commons/jexl/util/ListGetExecutor.java

Modified: commons/proper/jexl/trunk/src/main/java/org/apache/commons/jexl/util/ListGetExecutor.java
URL: http://svn.apache.org/viewvc/commons/proper/jexl/trunk/src/main/java/org/apache/commons/jexl/util/ListGetExecutor.java?rev=814633&r1=814632&r2=814633&view=diff
==============================================================================
--- commons/proper/jexl/trunk/src/main/java/org/apache/commons/jexl/util/ListGetExecutor.java
(original)
+++ commons/proper/jexl/trunk/src/main/java/org/apache/commons/jexl/util/ListGetExecutor.java
Mon Sep 14 13:25:05 2009
@@ -63,9 +63,9 @@
             && objectClass.equals(list.getClass())
             && index instanceof Integer) {
             if (method == ARRAY_GET) {
-                return java.lang.reflect.Array.get(list, property.intValue());
+                return java.lang.reflect.Array.get(list, (Integer) index);
             } else {
-                return ((List<?>) list).get(property.intValue());
+                return ((List<?>) list).get((Integer) index);
             }
         }
         return TRY_FAILED;



Mime
View raw message