summaryrefslogtreecommitdiffstats
path: root/tests/errors/AspectInheritance4.java
blob: c31aec15310c57eade78b2850bcbead1da835a2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
public class AspectInheritance4 {
    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 OtherAspect {
    // can't reference an abstract pointcut using a static reference
    before(): Base.targets(int, C) { }
}


class C {
    public void m(int i) { }
}

class SubC extends C {}