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

public class Code3 {
  public static boolean isTrue = true;

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

aspect X {

  @org.aspectj.lang.annotation.control.CodeGenerationHint(ifNameSuffix="barney")
  pointcut p(): execution(* Code3.*(..)) && if(Code3.isTrue);

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