If the method is found, mark the property as resolved
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Wed, 13 Jan 2010 17:53:36 +0000 (17:53 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Wed, 13 Jan 2010 17:53:36 +0000 (17:53 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@898860 13f79535-47bb-0310-9956-ffa450edef68

java/javax/el/BeanELResolver.java

index f4524f3..729633d 100644 (file)
@@ -429,8 +429,9 @@ public class BeanELResolver extends ELResolver {
                }
                }
            }
+           Object result = null;
            try {
-            return matchingMethod.invoke(base, parameters);
+               result = matchingMethod.invoke(base, parameters);
         } catch (IllegalArgumentException e) {
             throw new ELException(e);
         } catch (IllegalAccessException e) {
@@ -439,6 +440,8 @@ public class BeanELResolver extends ELResolver {
             throw new ELException(e.getCause());
         }
            
+        context.setPropertyResolved(true);
+        return result;
     }
 
 }