aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs165/pr277508/Basic2.java
blob: 73c1512453358f9b23c8b2d015c44459318c006f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import java.lang.reflect.Method;

public class Basic2 {
	
 public static void main(String[] args) {
	Method[] ms = X.class.getMethods();
	for (int i = 0; i < ms.length; i++) {
		if (ms[i].getName().indexOf("if$")!=-1) {
			System.out.println("if method: "+ms[i]);
		}
	}
}
  public void m() {}
}

aspect X {
  pointcut p(): execution(* m(..)) && if(true==true) && if(true==(true || true));
  pointcut q(): execution(* m(..)) && if(true==true);
  
}