]> source.dussan.org Git - aspectj.git/commitdiff
122460
authoraclement <aclement>
Mon, 3 May 2010 17:48:11 +0000 (17:48 +0000)
committeraclement <aclement>
Mon, 3 May 2010 17:48:11 +0000 (17:48 +0000)
tests/bugs169/pr122460/one/A.java [new file with mode: 0644]
tests/bugs169/pr122460/one/Code.java [new file with mode: 0644]
tests/bugs169/pr122460/one/Runner.java [new file with mode: 0644]
tests/bugs169/pr122460/one/aop.xml [new file with mode: 0644]
tests/bugs169/pr122460/one/aop_codeonly.xml [new file with mode: 0644]
tests/bugs169/pr122460/one/aop_none.xml [new file with mode: 0644]

diff --git a/tests/bugs169/pr122460/one/A.java b/tests/bugs169/pr122460/one/A.java
new file mode 100644 (file)
index 0000000..7729e29
--- /dev/null
@@ -0,0 +1,6 @@
+package a;
+aspect A {
+  before():staticinitialization(!A) {
+    System.out.println("intercepted "+thisJoinPoint.getSignature().getDeclaringType());
+  }
+}
diff --git a/tests/bugs169/pr122460/one/Code.java b/tests/bugs169/pr122460/one/Code.java
new file mode 100644 (file)
index 0000000..9cc191d
--- /dev/null
@@ -0,0 +1,6 @@
+package code;
+public class Code {
+  public static void main(String[] argv) {
+    new runner.Runner().run();
+  }
+}
diff --git a/tests/bugs169/pr122460/one/Runner.java b/tests/bugs169/pr122460/one/Runner.java
new file mode 100644 (file)
index 0000000..56f5130
--- /dev/null
@@ -0,0 +1,6 @@
+package runner;
+public class Runner {
+  public void run() {
+    System.out.println("running");
+  }
+}
diff --git a/tests/bugs169/pr122460/one/aop.xml b/tests/bugs169/pr122460/one/aop.xml
new file mode 100644 (file)
index 0000000..2d924c8
--- /dev/null
@@ -0,0 +1,7 @@
+<aspectj>
+<aspects>
+ <aspect name="a.A"/>
+</aspects>
+<weaver>
+</weaver>
+</aspectj>
diff --git a/tests/bugs169/pr122460/one/aop_codeonly.xml b/tests/bugs169/pr122460/one/aop_codeonly.xml
new file mode 100644 (file)
index 0000000..f313cd6
--- /dev/null
@@ -0,0 +1,7 @@
+<aspectj>
+<aspects>
+ <aspect name="a.A" scope="!runner.Runner AND code.Code"/>
+</aspects>
+<weaver>
+</weaver>
+</aspectj>
diff --git a/tests/bugs169/pr122460/one/aop_none.xml b/tests/bugs169/pr122460/one/aop_none.xml
new file mode 100644 (file)
index 0000000..2d39930
--- /dev/null
@@ -0,0 +1,7 @@
+<aspectj>
+<aspects>
+ <aspect name="a.A" scope="!*"/>
+</aspects>
+<weaver>
+</weaver>
+</aspectj>