aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs151/pr125475/TestEmptyPointcutAtAspect2.java
blob: 7b92bd05bbcf04f07538208395bf3ef58cd4c5ae (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
import org.aspectj.lang.annotation.*;

@Aspect
public class TestEmptyPointcutAtAspect2 {

	@Pointcut("")
	protected void scope () {}
	
	@Before("within(*) && scope()")
	public void m() {
		System.err.println("Here!");
	}
}

class A {
	
	String s;
	int i;
	
	public static void main(String[] args) {
		new A().foo();
	} 
	
	public void foo() {
		i=4;
		s="hello";
	}
}