mirror of
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-08-27 05:54:38 +02:00
23 lines
403 B
Java
23 lines
403 B
Java
|
|
/** @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");
|
|
}
|
|
}
|