Skip to content

Commit 04e9c2b

Browse files
committed
Aspect actually applies in PersistenceExceptionTranslationPostProcessorTests
Issue: SPR-14457
1 parent adbc592 commit 04e9c2b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

spring-tx/src/test/java/org/springframework/dao/annotation/PersistenceExceptionTranslationPostProcessorTests.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2015 the original author or authors.
2+
* Copyright 2002-2016 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -22,6 +22,7 @@
2222
import org.aspectj.lang.annotation.Aspect;
2323
import org.aspectj.lang.annotation.Before;
2424
import org.junit.Test;
25+
2526
import org.springframework.aop.Advisor;
2627
import org.springframework.aop.aspectj.annotation.AnnotationAwareAspectJAutoProxyCreator;
2728
import org.springframework.aop.framework.Advised;
@@ -138,7 +139,7 @@ public DataAccessException translateExceptionIfPossible(RuntimeException ex) {
138139
@Aspect
139140
public static class LogAllAspect {
140141

141-
@Before("execution(void *.additionalMethod())")
142+
@Before("execution(void *.additionalMethod(*))")
142143
public void log(JoinPoint jp) {
143144
System.out.println("Before " + jp.getSignature().getName());
144145
}

0 commit comments

Comments
 (0)