mirror of
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-08-14 14:11:27 +02:00
25 lines
316 B
Java
25 lines
316 B
Java
import org.aspectj.lang.annotation.*;
|
|
import org.aspectj.lang.*;
|
|
|
|
|
|
abstract aspect Super {
|
|
void foo(String s) {}
|
|
}
|
|
|
|
public aspect BCode extends Super {
|
|
|
|
void around(): execution(* m(..)) {
|
|
super.foo("hello");
|
|
}
|
|
|
|
public static void main(String []argv) {
|
|
new C().m();
|
|
}
|
|
}
|
|
|
|
class C {
|
|
|
|
public void m() {}
|
|
}
|
|
|