aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs172/pr398246/Code6.java
blob: e032eb7c942470972c7c60fd1327ede42acb4e53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import java.lang.annotation.*;

public class Code6 {
  public static boolean isTrue = true;
  public static boolean isTrue2 = true;

  public void m() {
  }

  public static void main(String []argv) {
    new Code6().m();
  }
}

aspect X {

  pointcut p(): execution(* Code*.*(..)) && if(Code6.isTrue) && if(Code6.isTrue2);

  before(): p() {
    System.out.println("advice");
  }
}