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

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

aspect X {
  boolean doit() {
    System.out.println("In instance check method doit()");
    return true;
  }

  before():execution(* m(..))  && if(thisAspectInstance.doit()){ 
    System.out.println("In advice()");
  }
}