mirror of
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-08-26 17:58:43 +02:00
21 lines
581 B
Java
21 lines
581 B
Java
|
|
import org.aspectj.testing.*;
|
|
|
|
/** @testcase PR#647 abstract aspect used statically should not cause instantiation of advice or pointcut */
|
|
public abstract aspect AbstractAspectUsedStatically {
|
|
public static void main (String[] args) {
|
|
Tester.event("main");
|
|
Tester.checkAllEvents();
|
|
}
|
|
static {
|
|
Tester.expectEvent("main");
|
|
}
|
|
|
|
before() : definePrivate() {
|
|
Tester.check(false, "definePrivate");
|
|
}
|
|
|
|
/** private must be implemented in defining class */
|
|
private pointcut definePrivate() : execution(void main(..));
|
|
}
|