aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs/SuperPointcutCE.java
blob: be6111e1698f4ab31d0de4ac300735236c7bfe1a (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
public class SuperPointcutCE {
    public static void main(String[] a) {
        new C().run();
    }
}

class C {
    public void run(){ System.out.println("c");}
}

abstract aspect AA {
    pointcut pc() : call(public * *(..)) && !within(AA+);
    before() : pc() {
        System.out.println("here: " + thisJoinPointStaticPart);
    }
}

/** @testcase PR#40858 weaver trace on mis-qualified pointcut reference */
aspect B extends AA {
    
    pointcut pc() : super.pc()        // CE super not allowed in 1.1
        && !call(void println(..));
        
    pointcut blah() : UnknownType.pc();  // CE
}