]> source.dussan.org Git - aspectj.git/commitdiff
266220: generic aspect subtypes in aop.xml
authoraclement <aclement>
Wed, 25 Feb 2009 22:51:25 +0000 (22:51 +0000)
committeraclement <aclement>
Wed, 25 Feb 2009 22:51:25 +0000 (22:51 +0000)
tests/bugs164/pr266220/Code.java [new file with mode: 0644]
tests/bugs164/pr266220/Isolator.java [new file with mode: 0644]
tests/bugs164/pr266220/aop.xml [new file with mode: 0644]

diff --git a/tests/bugs164/pr266220/Code.java b/tests/bugs164/pr266220/Code.java
new file mode 100644 (file)
index 0000000..eae1c4b
--- /dev/null
@@ -0,0 +1,9 @@
+public class Code {
+  public static void main(String[]argv) {
+    new Code().run();
+  }
+
+  public void run() {
+    System.out.println("running...");
+  }
+}
\ No newline at end of file
diff --git a/tests/bugs164/pr266220/Isolator.java b/tests/bugs164/pr266220/Isolator.java
new file mode 100644 (file)
index 0000000..301c22e
--- /dev/null
@@ -0,0 +1,8 @@
+public abstract aspect Isolator<T> {
+
+  pointcut scope(): within(T);
+
+  before(): execution(* *(..)) && scope() {
+    System.out.println(thisJoinPoint);
+  }
+}
\ No newline at end of file
diff --git a/tests/bugs164/pr266220/aop.xml b/tests/bugs164/pr266220/aop.xml
new file mode 100644 (file)
index 0000000..910ccf5
--- /dev/null
@@ -0,0 +1,8 @@
+<aspectj>
+<aspects>
+  <concrete-aspect name="IsolatorForCode" extends="Isolator&lt;Code&gt;"/>
+</aspects>
+<weaver options="-showWeaveInfo">
+</weaver>
+</aspectj>
+