You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

G.java 382B

1234567891011121314151617181920212223
  1. import java.lang.annotation.*;
  2. @Retention(RetentionPolicy.RUNTIME)
  3. @interface Anno {
  4. Class value();
  5. }
  6. public class G {
  7. @Anno(String.class)
  8. public int i;
  9. @Anno(Integer.class)
  10. public int j;
  11. public static void main(String []argv) {
  12. System.out.println(new G().i);
  13. System.out.println(new G().j);
  14. }
  15. }
  16. aspect X {
  17. before(): get(@Anno(value=Foo.class) * *) {}
  18. }