aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs199/github_115/B.java
blob: eba199b67dd7b8873ffe21231a3e70997d016d40 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;

public class B {

	public static void main(String []argv) {
		System.out.println("B.main");
	}

}

@Aspect
abstract class AbstractAzpect {

	@Pointcut
	public abstract void isTrue();
	
	@Before("isTrue() && execution(* B.main(..))")
	public void beforeFalse() {
		System.out.println("Azpect.beforeFalse");
	}
}

@Aspect
class Azpect extends AbstractAzpect {
	
	@Override
	@Pointcut("if(true)")
	public void isTrue() { }

}