aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authoraclement <aclement>2010-05-03 17:48:11 +0000
committeraclement <aclement>2010-05-03 17:48:11 +0000
commitf36300f8ce14d6d971144a62a784d11c9540379d (patch)
tree8814b0e543b8390b457109084cd716cf263eee0f /tests
parentb8d22ad7b1b0304154ba631e9e5c71097dd55717 (diff)
downloadaspectj-f36300f8ce14d6d971144a62a784d11c9540379d.tar.gz
aspectj-f36300f8ce14d6d971144a62a784d11c9540379d.zip
122460
Diffstat (limited to 'tests')
-rw-r--r--tests/bugs169/pr122460/one/A.java6
-rw-r--r--tests/bugs169/pr122460/one/Code.java6
-rw-r--r--tests/bugs169/pr122460/one/Runner.java6
-rw-r--r--tests/bugs169/pr122460/one/aop.xml7
-rw-r--r--tests/bugs169/pr122460/one/aop_codeonly.xml7
-rw-r--r--tests/bugs169/pr122460/one/aop_none.xml7
6 files changed, 39 insertions, 0 deletions
diff --git a/tests/bugs169/pr122460/one/A.java b/tests/bugs169/pr122460/one/A.java
new file mode 100644
index 000000000..7729e299d
--- /dev/null
+++ b/tests/bugs169/pr122460/one/A.java
@@ -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
index 000000000..9cc191dc2
--- /dev/null
+++ b/tests/bugs169/pr122460/one/Code.java
@@ -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
index 000000000..56f51300e
--- /dev/null
+++ b/tests/bugs169/pr122460/one/Runner.java
@@ -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
index 000000000..2d924c8b8
--- /dev/null
+++ b/tests/bugs169/pr122460/one/aop.xml
@@ -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
index 000000000..f313cd676
--- /dev/null
+++ b/tests/bugs169/pr122460/one/aop_codeonly.xml
@@ -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
index 000000000..2d3993002
--- /dev/null
+++ b/tests/bugs169/pr122460/one/aop_none.xml
@@ -0,0 +1,7 @@
+<aspectj>
+<aspects>
+ <aspect name="a.A" scope="!*"/>
+</aspects>
+<weaver>
+</weaver>
+</aspectj>