]> source.dussan.org Git - aspectj.git/commitdiff
328840
authoraclement <aclement>
Wed, 27 Oct 2010 16:06:28 +0000 (16:06 +0000)
committeraclement <aclement>
Wed, 27 Oct 2010 16:06:28 +0000 (16:06 +0000)
tests/bugs1611/pr328840/Wibble.aj [new file with mode: 0644]

diff --git a/tests/bugs1611/pr328840/Wibble.aj b/tests/bugs1611/pr328840/Wibble.aj
new file mode 100644 (file)
index 0000000..11413e8
--- /dev/null
@@ -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 {}