summaryrefslogtreecommitdiffstats
path: root/tests/new/AbstractImplementedPointcut.java
blob: 339ab34e087bcb44a4f832651ddaabb98e864f5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/** @testcase PR#36736 implemented abstract pointcut */
public class AbstractImplementedPointcut {
    public static void main(String[] args) {
        new C().go();
    }
}

class C {
    void go(){}
}

abstract aspect A {
    abstract pointcut pc() : call(void go()); // CE 14
}

aspect B extends A {
    pointcut pc() : call(void go());
    before() : pc() {
	throw new Error("do not run");
    }
}