]> source.dussan.org Git - aspectj.git/commitdiff
237381: testcode
authoraclement <aclement>
Tue, 17 Jun 2008 02:23:51 +0000 (02:23 +0000)
committeraclement <aclement>
Tue, 17 Jun 2008 02:23:51 +0000 (02:23 +0000)
tests/bugs161/pr237381/Deow1.java [new file with mode: 0644]
tests/bugs161/pr237381/Deow2.java [new file with mode: 0644]

diff --git a/tests/bugs161/pr237381/Deow1.java b/tests/bugs161/pr237381/Deow1.java
new file mode 100644 (file)
index 0000000..88ae8f6
--- /dev/null
@@ -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 (file)
index 0000000..1416dbc
--- /dev/null
@@ -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() {}
+}