summaryrefslogtreecommitdiffstats
path: root/tests/errors/AspectInheritance1.java
blob: 18413139fbc23923c36967449977efe914879ba5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
public class AspectInheritance1 {
    public static void main(String[] args) {
    }
}


abstract aspect Base {
    abstract pointcut targets(int i, C c);

    after(int i, C c): targets(i, c) {
	//
    }
}

aspect EmptyConcrete extends Base {
    // this would match everything, but we declare it a syntax error
    pointcut targets(int i, C c): ;
}

class C {}