mirror of
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-08-26 05:57:44 +02:00
26 lines
407 B
Java
26 lines
407 B
Java
![]() |
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 {}
|