blob: e7a5e00a39a815b8888661ad68d29ea6e4b78644 (
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
28
29
30
31
32
33
34
35
36
|
package bar;
import foo.Foo;
aspect Bar {
public void Foo.doing() {
try {
System.out.println(i()); // CE L8
System.out.println(ancientI()); // CE L9
System.out.println(ancientJ()); // CE L10
System.out.println(this.clone()); // CE L11
System.out.println(clone()); // CE L12
}
catch(Throwable t) { }
}
before(Foo f) : call(* doStuff(..)) && target(f) {
f.doing();
}
}
privileged aspect PBar {
public void Foo.doingMore() {
try {
System.out.println(i());
System.out.println(ancientI());
System.out.println(ancientJ());
}
catch(Throwable t) { }
}
before(Foo f) : call(* doStuff(..)) && target(f) {
f.doing();
}
}
|