You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lu...@apache.org on 2014/01/23 21:12:58 UTC
svn commit: r1560797 -
/myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/el/MockMethodExpression.java
Author: lu4242
Date: Thu Jan 23 20:12:57 2014
New Revision: 1560797
URL: http://svn.apache.org/r1560797
Log:
MYFACESTEST-64 MockMethodExpression should throw MethodNotFoundException
Modified:
myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/el/MockMethodExpression.java
Modified: myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/el/MockMethodExpression.java
URL: http://svn.apache.org/viewvc/myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/el/MockMethodExpression.java?rev=1560797&r1=1560796&r2=1560797&view=diff
==============================================================================
--- myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/el/MockMethodExpression.java (original)
+++ myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/el/MockMethodExpression.java Thu Jan 23 20:12:57 2014
@@ -25,6 +25,7 @@ import javax.el.ELException;
import javax.el.ELResolver;
import javax.el.MethodExpression;
import javax.el.MethodInfo;
+import javax.el.MethodNotFoundException;
import javax.faces.context.FacesContext;
/**
@@ -201,6 +202,10 @@ public class MockMethodExpression extend
{
throw e;
}
+ catch (NoSuchMethodException e)
+ {
+ throw new MethodNotFoundException(e);
+ }
catch (Exception e)
{
throw new ELException(e);