mirror of
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-09-13 15:45:38 +02:00
28 lines
388 B
Java
28 lines
388 B
Java
|
public class AroundNames {
|
||
|
public static void main(String[] args) {
|
||
|
new Base().doit();
|
||
|
new Derived().doit();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
class Base {
|
||
|
static private final void m() {}
|
||
|
|
||
|
public void doit() {
|
||
|
m();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
class Derived {
|
||
|
static private final void m() { return; } // "Derived"; }
|
||
|
|
||
|
public void doit() {
|
||
|
m();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
aspect A {
|
||
|
Object around(): execution(* m()) {
|
||
|
return proceed();
|
||
|
}
|
||
|
}
|