blob: c27255c5c1e654dca5206ccc7880e4fb54f0eae9 (
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
41
42
43
|
// Testing interactions between ITD methods and the fields that might exist
// on a generic type...
import java.util.*;
import java.lang.reflect.*;
import org.aspectj.lang.annotation.*;
class I<A> {
A a;
List<A> b;
}
aspect Foo {
C I<C>.m0() {
return a;
}
List<C> I<C>.m1() {
return b;
}
void I<C>.setA(C aC) {
a = aC;
}
void I<L>.setB(List<L> aB) {
b = aB;
}
List<C> I<C>.swap(List<C> cs1,List<C> cs2) {
cs1=cs2;
return cs1;
}
}
public class GenericAspectQ extends I<String> {
public static void main(String []argv) {
GenericAspectQ _instance = new GenericAspectQ();
}
}
|