diff options
author | aclement <aclement> | 2009-05-12 17:47:06 +0000 |
---|---|---|
committer | aclement <aclement> | 2009-05-12 17:47:06 +0000 |
commit | d45f7abd3a340ac6839dbb185cc3605c7e240481 (patch) | |
tree | 3720c6801c1696af4e891b40f55d8380382e77e6 /tests/bugs165 | |
parent | 66235e846cc472a5e7c15ab3c1c37513d2e4ed0b (diff) | |
download | aspectj-d45f7abd3a340ac6839dbb185cc3605c7e240481.tar.gz aspectj-d45f7abd3a340ac6839dbb185cc3605c7e240481.zip |
275625: test and fix: declare at method
Diffstat (limited to 'tests/bugs165')
-rw-r--r-- | tests/bugs165/pr275625/A.java | 22 | ||||
-rw-r--r-- | tests/bugs165/pr275625/F.java | 22 |
2 files changed, 44 insertions, 0 deletions
diff --git a/tests/bugs165/pr275625/A.java b/tests/bugs165/pr275625/A.java new file mode 100644 index 000000000..8b4226871 --- /dev/null +++ b/tests/bugs165/pr275625/A.java @@ -0,0 +1,22 @@ +import java.lang.annotation.*; + +public class A { + public void m() {} + + public static void main(String []argv) { + } + +} + +aspect X { + declare @method: @J * A.m(): @I; + declare @method: * A.m(): @K; + declare @method: @K * A.m(): @J; +} + +@Retention(RetentionPolicy.RUNTIME) +@interface I {} +@Retention(RetentionPolicy.RUNTIME) +@interface J {} +@Retention(RetentionPolicy.RUNTIME) +@interface K {} diff --git a/tests/bugs165/pr275625/F.java b/tests/bugs165/pr275625/F.java new file mode 100644 index 000000000..e881404e4 --- /dev/null +++ b/tests/bugs165/pr275625/F.java @@ -0,0 +1,22 @@ +import java.lang.annotation.*; + +public class F { + int f; + + public static void main(String []argv) { + } + +} + +aspect X { + declare @field: @J * F.f: @I; + declare @field: * F.f: @K; + declare @field: @K * F.f: @J; +} + +@Retention(RetentionPolicy.RUNTIME) +@interface I {} +@Retention(RetentionPolicy.RUNTIME) +@interface J {} +@Retention(RetentionPolicy.RUNTIME) +@interface K {} |