blob: a601d8625c671763d84a984d4af7829a61e8c4eb (
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
|
class Foo {
public static void main(String[] args) {
(new Foo()).m1();
System.out.println("---");
(new Bar()).m1();
}
public void m1() { }
}
class Bar extends Foo {
public void m1() { super.m1(); }
}
aspect A {
static before(): instanceof(Foo) && executions(public * *(..)) {
System.out.println("executions");
}
static before(): instanceof(Foo) && receptions(public * *(..)) {
System.out.println("receptions");
}
}
|