aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs169
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs169')
-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>