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

public class Code2 {
  public static boolean isTrue = true;

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

aspect X {
  @CodeGenerationHint(ifNameSuffix="fred")
  pointcut p(): execution(* Code2.*(..)) && if(Code2.isTrue);
  before(): p() {
    System.out.println("advice");
  }
}