aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/bugs164/pr266220/Code.java9
-rw-r--r--tests/bugs164/pr266220/Isolator.java8
-rw-r--r--tests/bugs164/pr266220/aop.xml8
3 files changed, 25 insertions, 0 deletions
diff --git a/tests/bugs164/pr266220/Code.java b/tests/bugs164/pr266220/Code.java
new file mode 100644
index 000000000..eae1c4b02
--- /dev/null
+++ b/tests/bugs164/pr266220/Code.java
@@ -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
index 000000000..301c22ef5
--- /dev/null
+++ b/tests/bugs164/pr266220/Isolator.java
@@ -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
index 000000000..910ccf541
--- /dev/null
+++ b/tests/bugs164/pr266220/aop.xml
@@ -0,0 +1,8 @@
+<aspectj>
+<aspects>
+ <concrete-aspect name="IsolatorForCode" extends="Isolator&lt;Code&gt;"/>
+</aspects>
+<weaver options="-showWeaveInfo">
+</weaver>
+</aspectj>
+