@ -136,10 +137,11 @@ public class AnnotationMethodHandlerExceptionResolver extends AbstractHandlerExc
@@ -136,10 +137,11 @@ public class AnnotationMethodHandlerExceptionResolver extends AbstractHandlerExc
"Ambiguous exception handler mapped for "+handledException+"]: {"+
oldMappedMethod+", "+method+"}.");
if(!oldMappedMethod.equals(method)){
thrownewIllegalStateException(
"Ambiguous exception handler mapped for "+handledException+"]: {"+
oldMappedMethod+", "+method+"}.");
}
}
}
}
@ -160,7 +162,7 @@ public class AnnotationMethodHandlerExceptionResolver extends AbstractHandlerExc
@@ -160,7 +162,7 @@ public class AnnotationMethodHandlerExceptionResolver extends AbstractHandlerExc
@ -90,6 +90,15 @@ public class AnnotationMethodHandlerExceptionResolverTests {
@@ -90,6 +90,15 @@ public class AnnotationMethodHandlerExceptionResolverTests {
assertEquals("Invalid view name returned","Y:BindException",mav.getViewName());
@ -119,6 +128,16 @@ public class AnnotationMethodHandlerExceptionResolverTests {
@@ -119,6 +128,16 @@ public class AnnotationMethodHandlerExceptionResolverTests {