Consistent equals/hashCode/toString implementations in AnnotationMatchingPointcut/ClassFilter/MethodMatcher

Issue: SPR-11275
Issue: SPR-11276
(cherry picked from commit 0de307b)
This commit is contained in:
Juergen Hoeller
2014-01-05 00:02:47 +01:00
parent 6045914057
commit be2d915cc2
4 changed files with 63 additions and 5 deletions

View File

@@ -140,7 +140,7 @@ public class AsyncAnnotationAdvisor extends AbstractPointcutAdvisor implements B
ComposablePointcut result = null;
for (Class<? extends Annotation> asyncAnnotationType : asyncAnnotationTypes) {
Pointcut cpc = new AnnotationMatchingPointcut(asyncAnnotationType, true);
Pointcut mpc = new AnnotationMatchingPointcut(null, asyncAnnotationType);
Pointcut mpc = AnnotationMatchingPointcut.forMethodAnnotation(asyncAnnotationType);
if (result == null) {
result = new ComposablePointcut(cpc).union(mpc);
}