blob: 142de669c32690cb6d042b53b1485bac7d1b8d75 (
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
26
27
28
29
30
31
32
|
public class AspectInheritance3 {
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 GoodConcrete extends Base {
pointcut targets(int i, C c);
}
// this aspect is illegal because concrete-concrete extension is illegal
aspect DoubleConcrete extends GoodConcrete {
}
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 {}
|