Support HandlerMethod parameter in @MessageExceptionHandler

Issue: SPR-13196
This commit is contained in:
Sebastien Deleuze
2015-07-07 15:43:39 +02:00
parent f79a5c12d5
commit 97936140cc
2 changed files with 27 additions and 1 deletions
@@ -493,7 +493,7 @@ public abstract class AbstractMethodMessageHandler<T>
logger.debug("Invoking " + invocable.getShortLogMessage());
}
try {
Object returnValue = invocable.invoke(message, ex);
Object returnValue = invocable.invoke(message, ex, handlerMethod);
MethodParameter returnType = invocable.getReturnType();
if (void.class == returnType.getParameterType()) {
return;