mirror of
https://github.com/apache/struts.git
synced 2026-09-12 17:15:02 +00:00
WW-4331 Returns null instead of throwing exception
This allows other UnknownHandler to be called
This commit is contained in:
+1
-1
@@ -420,7 +420,7 @@ public class ConventionUnknownHandler implements UnknownHandler {
|
||||
* Not used
|
||||
*/
|
||||
public Object handleUnknownActionMethod(Object action, String methodName) throws NoSuchMethodException {
|
||||
throw null;
|
||||
return null;
|
||||
}
|
||||
|
||||
public static class Resource {
|
||||
|
||||
@@ -53,8 +53,8 @@ public interface UnknownHandler {
|
||||
* @since 2.1
|
||||
* @param action The action object
|
||||
* @param methodName The method name to call
|
||||
* @return The result returned from invoking the action method
|
||||
* @throws NoSuchMethodException If the method cannot be found
|
||||
* @return The result returned from invoking the action method, can return <tt>null</tt>
|
||||
* @throws NoSuchMethodException If the method cannot be found (deprecated) - should return nunll instead
|
||||
*/
|
||||
public Object handleUnknownActionMethod(Object action, String methodName) throws NoSuchMethodException;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user