spogulis no
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-07-22 21:09:41 +02:00
24 rindas
423 B
Java
24 rindas
423 B
Java
import org.aspectj.testing.*;
|
|
|
|
public class ClassExtendingAbstractAspectCE {
|
|
public static void main(String[] args) {
|
|
new ClassExtendingAbstractAspectCE().go(args);
|
|
}
|
|
|
|
void go(String[] args) {
|
|
Extends e = new Extends();
|
|
Tester.check(false, "shouldn't have compiled!");
|
|
}
|
|
|
|
}
|
|
|
|
abstract aspect Aspect {
|
|
|
|
}
|
|
|
|
|
|
class Extends extends Aspect { // CE 20
|
|
pointcut p(): call(* *());
|
|
}
|
|
|