blob: 3c1e4cafee130ef2df77c501263b252c7a179ad5 (
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
|
abstract class ValueChange<Q> {
public ValueChange(Q initValue) { }
}
abstract class SyncValueGroup<T> extends ValueChange<T> {
public SyncValueGroup(T initValue) {
super(initValue);
}
public final synchronized void link(SyncValueGroup<T> ... list) { }
}
class SyncValueTest {
class SyncInteger extends SyncValueGroup<Integer> {
public SyncInteger(int val) {
super(new Integer(val));
}
}
private SyncInteger a = new SyncInteger(1);
public void testSyncValueGroup() {
a.link(a);
}
}
aspect X {
before(): call(* *(..)) {}
}
|