blob: 07ea579a5a8bd8896cc8964392f929d56312f3aa (
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
37
38
39
40
|
class C {
static int x = 13;
int y;
public C() {
y= 14;
}
public static void main(String args[]) {
C m = new C();
m.y = 3;
System.out.println("hi");
}
}
public class pr62642 {
public static void main(String[] args) {
try {
C.main(null);
} catch (ExceptionInInitializerError eiie) {
System.err.println("EIIE="+eiie.toString());
//System.err.println("CAUSE="+eiie.getCause().toString());
}
}
}
aspect Aspect {
before () : within(*) && !within(pr62642) {
System.out.println("BEFORE "+ thisJoinPointStaticPart.getKind() +
" at " + thisJoinPointStaticPart.getSourceLocation());
}
after () : within(*) && !within(pr62642) {
System.out.println("AFTER " + thisJoinPointStaticPart.getKind() +
" at " + thisJoinPointStaticPart.getSourceLocation());
}
}
|