aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs1610
diff options
context:
space:
mode:
authoraclement <aclement>2010-08-10 23:48:19 +0000
committeraclement <aclement>2010-08-10 23:48:19 +0000
commit36c91148128afe51181cea40c70866e6e21dd64e (patch)
tree6a40a3709148cb363fa175f9407abeaad3791a57 /tests/bugs1610
parentd266e547aca31ae96fd8d469620b036ae9430989 (diff)
downloadaspectj-36c91148128afe51181cea40c70866e6e21dd64e.tar.gz
aspectj-36c91148128afe51181cea40c70866e6e21dd64e.zip
322272: declare annotation for incremental compilation when used through abstract aspect.
Diffstat (limited to 'tests/bugs1610')
-rw-r--r--tests/bugs1610/pr322272/Base.java9
-rw-r--r--tests/bugs1610/pr322272/Base2.java9
-rw-r--r--tests/bugs1610/pr322272/F1.java8
-rw-r--r--tests/bugs1610/pr322272/F2.java8
4 files changed, 34 insertions, 0 deletions
diff --git a/tests/bugs1610/pr322272/Base.java b/tests/bugs1610/pr322272/Base.java
new file mode 100644
index 000000000..035fa9c6b
--- /dev/null
+++ b/tests/bugs1610/pr322272/Base.java
@@ -0,0 +1,9 @@
+import java.lang.annotation.*;
+
+public abstract aspect Base {
+ declare @type: F*: @Anno;
+}
+
+@Retention(RetentionPolicy.RUNTIME)
+@interface Anno {
+}
diff --git a/tests/bugs1610/pr322272/Base2.java b/tests/bugs1610/pr322272/Base2.java
new file mode 100644
index 000000000..08131a6b4
--- /dev/null
+++ b/tests/bugs1610/pr322272/Base2.java
@@ -0,0 +1,9 @@
+import java.lang.annotation.*;
+
+public abstract aspect Base2<B> {
+ declare @type: F*: @Anno;
+}
+
+@Retention(RetentionPolicy.RUNTIME)
+@interface Anno {
+}
diff --git a/tests/bugs1610/pr322272/F1.java b/tests/bugs1610/pr322272/F1.java
new file mode 100644
index 000000000..c3df6093b
--- /dev/null
+++ b/tests/bugs1610/pr322272/F1.java
@@ -0,0 +1,8 @@
+public class F1 {
+ public static void main(String []argv) throws Exception {
+ System.out.println(F1.class.getAnnotations()[0]);
+ }
+}
+
+aspect X extends Base {
+}
diff --git a/tests/bugs1610/pr322272/F2.java b/tests/bugs1610/pr322272/F2.java
new file mode 100644
index 000000000..c0df2c9ac
--- /dev/null
+++ b/tests/bugs1610/pr322272/F2.java
@@ -0,0 +1,8 @@
+public class F2 {
+ public static void main(String []argv) throws Exception {
+ System.out.println(F2.class.getAnnotations()[0]);
+ }
+}
+
+aspect X extends Base2<String> {
+}