diff options
Diffstat (limited to 'tests/bugs150/pr103740/AroundAdvice.aj')
-rw-r--r-- | tests/bugs150/pr103740/AroundAdvice.aj | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/bugs150/pr103740/AroundAdvice.aj b/tests/bugs150/pr103740/AroundAdvice.aj new file mode 100644 index 000000000..87f600928 --- /dev/null +++ b/tests/bugs150/pr103740/AroundAdvice.aj @@ -0,0 +1,16 @@ +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; + +@Retention(RetentionPolicy.RUNTIME) +public @interface AroundAdvice { } + +aspect ErrorHandling { + before(): !@annotation(AroundAdvice) && execution(* C.*(..)) { } +} + +class C { + public static void m1() {} + @AroundAdvice public static void m2() {} + public void m3() {} + @AroundAdvice public void m4() {} +} |