diff options
Diffstat (limited to 'tests/bugs1612/prx/C.java')
-rw-r--r-- | tests/bugs1612/prx/C.java | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/bugs1612/prx/C.java b/tests/bugs1612/prx/C.java new file mode 100644 index 000000000..e82f44ad5 --- /dev/null +++ b/tests/bugs1612/prx/C.java @@ -0,0 +1,24 @@ +import java.lang.annotation.*; + +@Retention(RetentionPolicy.RUNTIME) +@interface Anno { + Class value(); +//int i(); +} + +public class C { + + @Anno(String.class) + //@Anno(i=3) + public int i; + + public static void main(String []argv) { + System.out.println(new C().i); + } +} + +aspect X { + //before(): get(@Anno(String.class) * *(..)) {} + before(): get(@Anno(value=String.class) * *) {} + //before(): get(@Anno(i=3) * *) {} +} |