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.

PR113447d.java 518B

12345678910111213141516171819202122232425
  1. import java.lang.annotation.Retention;
  2. import java.lang.annotation.RetentionPolicy;
  3. @Retention(RetentionPolicy.RUNTIME)
  4. @interface Annotation{};
  5. public class PR113447d {
  6. public static void main(String[] args) {
  7. PR113447d me = new PR113447d();
  8. me.method4(1);
  9. }
  10. @Annotation public void method4(int i){}
  11. @Annotation public void method5(int i){}
  12. }
  13. aspect Super {
  14. pointcut p(Annotation a) :
  15. @annotation(a) && (call(void method4(int))
  16. || call(void method5(int)));
  17. before(Annotation a) : p(a) {}
  18. }