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

  public void m() {
  }

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

aspect X {

 before(): execution(* Code*.*(..)) && if(Code7.isTrue) && if(Code7.isTrue2) {
    System.out.println("advice");
  }
}