aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs/PcdLookup.java
blob: eb8f8d0ce13076eed9f0dc20da256a8737ffe6a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import org.aspectj.testing.Tester;

/** @testcase Bugzilla Bug 29691  
   Static inner aspects cannot reference user defined pointcuts 
 
 */
public class PcdLookup {

    public static void main(String[] args) {
    }
    
    public static aspect Referencer {
        pointcut mainCall() : call(void main(..));
        pointcut myMainCall() : mainCall() && outer(); 
    }   
    
    pointcut outer(): within(PcdLookup);
}