diff options
Diffstat (limited to 'tests/java5/annotations/binding/bugs/Test3.java')
-rw-r--r-- | tests/java5/annotations/binding/bugs/Test3.java | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/java5/annotations/binding/bugs/Test3.java b/tests/java5/annotations/binding/bugs/Test3.java new file mode 100644 index 000000000..93b3ebf86 --- /dev/null +++ b/tests/java5/annotations/binding/bugs/Test3.java @@ -0,0 +1,23 @@ +import java.lang.annotation.*; + +@Target(ElementType.TYPE) +@Retention(RetentionPolicy.RUNTIME) +@interface Ann {} + +@Ann +class C{} + +public class Test3 { + + public static void main(String[] args) { + C a = new C(); + abc(a); + } + + static void abc(C y) {} +} + + +aspect Annotations { + before(Ann ann) : call(* Test3.*(..)) && @args(ann) { } +} |