镜像来自
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-07-24 13:54:45 +02:00
23 line
380 B
Java
23 line
380 B
Java
import org.aspectj.testing.*;
|
|
|
|
public class ClassExtendingAspect {
|
|
public static void main(String[] args) {
|
|
new ClassExtendingAspect().go(args);
|
|
}
|
|
|
|
void go(String[] args) {
|
|
Extends e = new Extends();
|
|
Tester.check(false, "shouldn't have compiled!");
|
|
}
|
|
|
|
}
|
|
|
|
aspect Aspect {
|
|
|
|
}
|
|
|
|
class Extends extends Aspect {
|
|
pointcut p(): call(* *());
|
|
}
|
|
|