réplica de
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-08-26 17:58:43 +02:00
28 líneas
388 B
Java
28 líneas
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();
|
|
}
|
|
} |