summaryrefslogtreecommitdiffstats
path: root/tests/bugs1612/pr239649/Fifteen.java
blob: 304b3a355ca431c6be7402103968e6b58d44b25e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
public class Fifteen {
  public static void main(String[] argv) {
    Fifteen a = new Fifteen();
    a.m();
  }

  public void m() {
    System.out.println("Method m() running");
  }
}

abstract aspect Y {
  abstract pointcut p();
  before(): if(thisAspectInstance.doit()) && p() {
    System.out.println("In advice()");
  }
  boolean doit() {
    System.out.println("in doit(): class="+this.getClass().getName());
    return true;
  }
}

aspect X extends Y {
  pointcut p(): execution(* m(..));
}