aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs172/pr398246/Code4.java
blob: 488092d93bf2a5b69aaa6628b1cc2e2104cd6355 (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 Code4 {
  public static boolean isTrue = true;

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

aspect X {

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

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