summaryrefslogtreecommitdiffstats
path: root/tests/bugs/InnerPointcut.java
blob: 063a5eb6567c063ac26333da6b8dfadeb985852a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// for Bug#:  32428 
import org.aspectj.testing.Tester;


public class InnerPointcut {
	public static void main(String[] args) {
		Tester.checkEqual(TrackTestCase.note, "ran");
	}
	
	pointcut testcutOuter(): within(InnerPointcut);
	
    static aspect TrackTestCase {
    	static String note = "not run yet";
        pointcut testcut() : execution(public void mai*(..));
        before() : testcut() && testcutOuter() {
        	note = "ran";
        }        
    }

}