summaryrefslogtreecommitdiffstats
path: root/tests/bugs153/pr155763/Test.java
blob: 2cc42f0cc4077bcd710fda22be2b1810bc83e03f (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
import java.util.List;

public class Test {

	public boolean method(final MyInterface iface) {
		for(final String s:iface.listFile()) if(s.equals("blah")) {
			System.out.println("Test.method()");
			continue;
		}
		return false;	
	}

	public void notCalledMethod() {
	}

}

interface MyInterface {

	public abstract List<String> listFile();
}

aspect MyAspect {

	pointcut p() : call(public * Test.notCalledMethod());

	before() : p() {
		System.out.println("calling method");
	}

}