@@ -127,7 +127,7 @@ void perTargetAspect() throws Exception {
127
127
}
128
128
129
129
@ Test
130
- void multiplePerTargetAspects () throws Exception {
130
+ void multiplePerTargetAspects () {
131
131
TestBean target = new TestBean ();
132
132
int realAge = 65 ;
133
133
target .setAge (realAge );
@@ -153,7 +153,7 @@ void multiplePerTargetAspects() throws Exception {
153
153
}
154
154
155
155
@ Test
156
- void multiplePerTargetAspectsWithOrderAnnotation () throws Exception {
156
+ void multiplePerTargetAspectsWithOrderAnnotation () {
157
157
TestBean target = new TestBean ();
158
158
int realAge = 65 ;
159
159
target .setAge (realAge );
@@ -283,7 +283,7 @@ private void namedPointcuts(Object aspectInstance) {
283
283
int realAge = 65 ;
284
284
target .setAge (realAge );
285
285
ITestBean itb = createProxy (target , ITestBean .class ,
286
- getAdvisorFactory ().getAdvisors (aspectInstanceFactory (aspectInstance , "someBean" )));
286
+ getAdvisorFactory ().getAdvisors (aspectInstanceFactory (aspectInstance , "someBean" )));
287
287
assertThat (itb .getAge ()).as ("Around advice must apply" ).isEqualTo (-1 );
288
288
assertThat (target .getAge ()).isEqualTo (realAge );
289
289
}
@@ -292,7 +292,7 @@ private void namedPointcuts(Object aspectInstance) {
292
292
void bindingWithSingleArg () {
293
293
TestBean target = new TestBean ();
294
294
ITestBean itb = createProxy (target , ITestBean .class ,
295
- getAdvisorFactory ().getAdvisors (aspectInstanceFactory (new BindingAspectWithSingleArg (), "someBean" )));
295
+ getAdvisorFactory ().getAdvisors (aspectInstanceFactory (new BindingAspectWithSingleArg (), "someBean" )));
296
296
itb .setAge (10 );
297
297
assertThat (itb .getAge ()).as ("Around advice must apply" ).isEqualTo (20 );
298
298
assertThat (target .getAge ()).isEqualTo (20 );
@@ -483,7 +483,7 @@ void afterAdviceTypes() throws Exception {
483
483
}
484
484
485
485
@ Test
486
- void nonAbstractParentAspect () throws Exception {
486
+ void nonAbstractParentAspect () {
487
487
IncrementingAspect aspect = new IncrementingAspect ();
488
488
489
489
// Precondition:
@@ -689,7 +689,7 @@ void doubleArg(ProceedingJoinPoint pjp, int x) throws Throwable {
689
689
@ Aspect
690
690
static class Library {
691
691
692
- @ Pointcut ("execution(!void get*())" )
692
+ @ Pointcut ("execution(int get*())" ) // before AspectJ 1.9.20, "!void" used to work instead of "int"
693
693
void propertyAccess () {}
694
694
695
695
@ Pointcut ("execution(* *(..)) && args(i)" )
0 commit comments