aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs1612/pr239649/Six.java
blob: f2c46b3f673c66f37903ce6378af6a39d773c13d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
public class Six {
  public static void main(String[] argv) {
    Six a = new Six();
    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():call(* m(..))  && if(thisAspectInstance.doit()){ 
    System.out.println("In advice() "+thisEnclosingJoinPointStaticPart);
  }
}