aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs183
diff options
context:
space:
mode:
authorAndy Clement <aclement@gopivotal.com>2014-10-21 13:19:19 -0700
committerAndy Clement <aclement@gopivotal.com>2014-10-21 13:19:19 -0700
commit0df90e175b316d5a8e6189c2d89725cd8afd7bd3 (patch)
tree0e6a7c8b5d41ed4d0e44eb2f4a61a08653ee02a2 /tests/bugs183
parentdddd1236cd21982a07f887ff7fa5d484ebc3b86c (diff)
downloadaspectj-0df90e175b316d5a8e6189c2d89725cd8afd7bd3.tar.gz
aspectj-0df90e175b316d5a8e6189c2d89725cd8afd7bd3.zip
Support for @RequiredTypes and abstract aspects
Diffstat (limited to 'tests/bugs183')
-rw-r--r--tests/bugs183/436653/abstract/A.java1
-rw-r--r--tests/bugs183/436653/abstract/AA.java5
-rw-r--r--tests/bugs183/436653/abstract/Code.java8
-rw-r--r--tests/bugs183/436653/abstract/X.java8
4 files changed, 22 insertions, 0 deletions
diff --git a/tests/bugs183/436653/abstract/A.java b/tests/bugs183/436653/abstract/A.java
new file mode 100644
index 000000000..9f4b93d84
--- /dev/null
+++ b/tests/bugs183/436653/abstract/A.java
@@ -0,0 +1 @@
+public class A {}
diff --git a/tests/bugs183/436653/abstract/AA.java b/tests/bugs183/436653/abstract/AA.java
new file mode 100644
index 000000000..eceb74d76
--- /dev/null
+++ b/tests/bugs183/436653/abstract/AA.java
@@ -0,0 +1,5 @@
+import org.aspectj.lang.annotation.*;
+
+@RequiredTypes("A")
+abstract aspect AA {
+}
diff --git a/tests/bugs183/436653/abstract/Code.java b/tests/bugs183/436653/abstract/Code.java
new file mode 100644
index 000000000..f956f53cf
--- /dev/null
+++ b/tests/bugs183/436653/abstract/Code.java
@@ -0,0 +1,8 @@
+public class Code {
+ public static void main(String []argv) {
+ new Code().m();
+ }
+ public void m() {
+ System.out.println("Code.m()");
+ }
+}
diff --git a/tests/bugs183/436653/abstract/X.java b/tests/bugs183/436653/abstract/X.java
new file mode 100644
index 000000000..e0450f424
--- /dev/null
+++ b/tests/bugs183/436653/abstract/X.java
@@ -0,0 +1,8 @@
+import org.aspectj.lang.annotation.*;
+
+//@RequiredTypes("A")
+aspect X extends AA {
+ @SuppressAjWarnings("adviceDidNotMatch")
+ before(): execution(* *(..)) { System.out.println("X.before"); }
+}
+