aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authoraclement <aclement>2010-10-27 16:06:28 +0000
committeraclement <aclement>2010-10-27 16:06:28 +0000
commit9c8d91a03593d28e516294f4bc47e378a6149d10 (patch)
tree8c097d470a4ab48bf6fd70e92c70ace31e165e13 /tests
parentad50f31097edb3451483b9ddc15c24d06df11d90 (diff)
downloadaspectj-9c8d91a03593d28e516294f4bc47e378a6149d10.tar.gz
aspectj-9c8d91a03593d28e516294f4bc47e378a6149d10.zip
328840
Diffstat (limited to 'tests')
-rw-r--r--tests/bugs1611/pr328840/Wibble.aj33
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 {}