diff options
author | aclement <aclement> | 2005-09-12 13:37:56 +0000 |
---|---|---|
committer | aclement <aclement> | 2005-09-12 13:37:56 +0000 |
commit | 2ae4f531c7f7c3c38c983c73492ef63b224784e3 (patch) | |
tree | deb60a943286b10d70075c441f75c12ddca4e801 /tests/bugs150/pr103740 | |
parent | f5030e64039e19f562423d9c8b7f7b4587ecdea7 (diff) | |
download | aspectj-2ae4f531c7f7c3c38c983c73492ef63b224784e3.tar.gz aspectj-2ae4f531c7f7c3c38c983c73492ef63b224784e3.zip |
Test and fix for PR103740: Compiler failure on @annotation
Diffstat (limited to 'tests/bugs150/pr103740')
-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() {} +} |