summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/bugs161/pr237381/Deow1.java16
-rw-r--r--tests/bugs161/pr237381/Deow2.java16
2 files changed, 32 insertions, 0 deletions
diff --git a/tests/bugs161/pr237381/Deow1.java b/tests/bugs161/pr237381/Deow1.java
new file mode 100644
index 000000000..88ae8f6a2
--- /dev/null
+++ b/tests/bugs161/pr237381/Deow1.java
@@ -0,0 +1,16 @@
+import org.aspectj.lang.annotation.*;
+
+aspect X {
+ @DeclareWarning("execution(* *.foo(..))")
+ public static final String argleBargle = "fromX";
+
+ public void foo() {}
+}
+
+@Aspect
+class Y {
+ @DeclareWarning("execution(* *.goo(..))")
+ public static final String argleBargle = "fromY";
+
+ public void goo() {}
+}
diff --git a/tests/bugs161/pr237381/Deow2.java b/tests/bugs161/pr237381/Deow2.java
new file mode 100644
index 000000000..1416dbc74
--- /dev/null
+++ b/tests/bugs161/pr237381/Deow2.java
@@ -0,0 +1,16 @@
+import org.aspectj.lang.annotation.*;
+
+aspect X {
+ @DeclareError("execution(* *.foo(..))")
+ public static final String argleBargle = "fromX";
+
+ public void foo() {}
+}
+
+@Aspect
+class Y {
+ @DeclareError("execution(* *.goo(..))")
+ public static final String argleBargle = "fromY";
+
+ public void goo() {}
+}