aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs150/pr103740
diff options
context:
space:
mode:
authoraclement <aclement>2005-09-12 13:37:56 +0000
committeraclement <aclement>2005-09-12 13:37:56 +0000
commit2ae4f531c7f7c3c38c983c73492ef63b224784e3 (patch)
treedeb60a943286b10d70075c441f75c12ddca4e801 /tests/bugs150/pr103740
parentf5030e64039e19f562423d9c8b7f7b4587ecdea7 (diff)
downloadaspectj-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.aj16
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() {}
+}