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.

Boo.java 317B

123456789101112131415161718192021
  1. import java.lang.annotation.*;
  2. @Retention(RetentionPolicy.RUNTIME)
  3. @interface Goo {}
  4. public class Boo {
  5. public static void main(String []argv) {
  6. new Boo().m(); // advises here
  7. }
  8. @Goo
  9. public void m() {
  10. System.err.println("");
  11. }
  12. }
  13. aspect X {
  14. before(): call(* *(..)) && !@withincode(Goo) {
  15. }
  16. }