diff options
author | aclement <aclement> | 2010-08-10 23:48:19 +0000 |
---|---|---|
committer | aclement <aclement> | 2010-08-10 23:48:19 +0000 |
commit | 36c91148128afe51181cea40c70866e6e21dd64e (patch) | |
tree | 6a40a3709148cb363fa175f9407abeaad3791a57 /tests/bugs1610 | |
parent | d266e547aca31ae96fd8d469620b036ae9430989 (diff) | |
download | aspectj-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.java | 9 | ||||
-rw-r--r-- | tests/bugs1610/pr322272/Base2.java | 9 | ||||
-rw-r--r-- | tests/bugs1610/pr322272/F1.java | 8 | ||||
-rw-r--r-- | tests/bugs1610/pr322272/F2.java | 8 |
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> { +} |