aboutsummaryrefslogtreecommitdiffstats
path: root/tests/errors/ClassExtendingAspect.java
blob: deced1ac19a7b5502266198a0a54d1904c84d0ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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(* *());
}