aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs/SuperPointcutCE.java
blob: 7231fb00e657ba4f97148e8a457431ef93b470d4 (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 MissingTypeSigatureCE {
    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() 
        && !call(void println(..));
        
    pointcut blah() : UnknownType.pc();  // CE
}