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.

PR113447c.java 506B

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