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

public class Code5 {
  public static boolean isTrue = true;

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

aspect X {

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

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