summaryrefslogtreecommitdiffstats
path: root/tests/bugs150/pr120521/PerTargetSubaspectError.java
blob: 0f2443dad961548f1756af259057d5eb53437f23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package bugs;

public class PerTargetSubaspectError {
       public static void main(String[] args) {
               C.run();
       }
       static class C {
               static void run() {}
       }
       pointcut doit() : execution(void C.run());

       // no error if not pertarget
       static aspect CPT pertarget(pc()){
               // no error if doit() defined in CPT
               protected pointcut pc() : doit(); // unexpected CE
               before() : doit() {} // no CE
       }
}