fixed pointcut for type-level annotation to only apply to public methods (SPR-8890)

master
Juergen Hoeller 13 years ago
parent 3a62aa053e
commit 5ab2bf16a5
  1. 2
      org.springframework.aspects/src/main/java/org/springframework/transaction/aspectj/AnnotationTransactionAspect.aj

@ -54,7 +54,7 @@ public aspect AnnotationTransactionAspect extends AbstractTransactionAspect {
* Transactional annotation. * Transactional annotation.
*/ */
private pointcut executionOfAnyPublicMethodInAtTransactionalType() : private pointcut executionOfAnyPublicMethodInAtTransactionalType() :
execution(public * ((@Transactional *)+).*(..)) && within(@Transactional); execution(public * ((@Transactional *)+).*(..)) && within(@Transactional *);
/** /**
* Matches the execution of any method with the * Matches the execution of any method with the

Loading…
Cancel
Save