diff options
author | aclement <aclement> | 2010-10-27 16:06:28 +0000 |
---|---|---|
committer | aclement <aclement> | 2010-10-27 16:06:28 +0000 |
commit | 9c8d91a03593d28e516294f4bc47e378a6149d10 (patch) | |
tree | 8c097d470a4ab48bf6fd70e92c70ace31e165e13 /tests/bugs1611 | |
parent | ad50f31097edb3451483b9ddc15c24d06df11d90 (diff) | |
download | aspectj-9c8d91a03593d28e516294f4bc47e378a6149d10.tar.gz aspectj-9c8d91a03593d28e516294f4bc47e378a6149d10.zip |
328840
Diffstat (limited to 'tests/bugs1611')
-rw-r--r-- | tests/bugs1611/pr328840/Wibble.aj | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/tests/bugs1611/pr328840/Wibble.aj b/tests/bugs1611/pr328840/Wibble.aj new file mode 100644 index 000000000..11413e801 --- /dev/null +++ b/tests/bugs1611/pr328840/Wibble.aj @@ -0,0 +1,33 @@ +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; + + +public aspect Wibble { + + declare @field: (@III *) Song.*: @Foo; + + before(): get((@III *) Song.*) { + System.out.println(); + } + public static void main(String []argv) throws Exception { + System.out.println(Song.class.getDeclaredField("i").getAnnotation(Foo.class)); + } +} + +@III +class XX { + +} +class Song { + + XX i; + + void foo() { + System.out.println(i); + } +} + +@Retention(RetentionPolicy.RUNTIME) +@interface III {} +@Retention(RetentionPolicy.RUNTIME) +@interface Foo {} |