diff options
Diffstat (limited to 'tests/bugs190/532210/Code3.java')
-rw-r--r-- | tests/bugs190/532210/Code3.java | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/bugs190/532210/Code3.java b/tests/bugs190/532210/Code3.java new file mode 100644 index 000000000..c644ab633 --- /dev/null +++ b/tests/bugs190/532210/Code3.java @@ -0,0 +1,24 @@ +import java.lang.annotation.*; + +@Retention(RetentionPolicy.RUNTIME) +@interface PA {} + +@Retention(RetentionPolicy.RUNTIME) +@interface TA {} + +@TA class P {} + +aspect X { + declare warning: execution(* a(@PA (@TA *))): "has param anno and type anno"; +} + +public class Code3 { + public static void main(String []argv) { + Object o = (Object[])argv; + } + + public void a(P p) {} + public void b(String q) {} + public void c(@PA P p) {} + public void d(@PA String q) {} +} |