blob: 94bcb156f2dc31b01e0b28ba327f941c410a7719 (
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
|
public class pr106874 {
class Inner { // works if static
private Integer field;
void bug() {
field = new Integer(0);
}
}
public static void main(String[] args) {
new pr106874().new Inner().bug();
}
}
aspect Aspect {
before(Object t) :
// target(Object) && // works
// this(t) && // works
target(t) && // fails
// set(* Bug.Inner.field) // works
// set(Integer Bug.Inner.*) // works
// get(* Bug.Inner.*) // works
set(* pr106874.Inner.*) // fails
{}
}
|