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

public class Code {
  public static boolean isTrue = true;

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

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