blob: 78288c9349a7487db6fa2c5f7ae193fb3e410ff0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
class Normal { int basicField;}
class Generic<T> { int basicField;}
aspect Injector {
void Normal.method() {}
void Generic.method() {}
int Normal.itdField;
int Generic.itdField;
void test() {
new Normal().method();
new Generic<Integer>().method();
int n1 = new Normal().basicField;
int normal = new Normal().itdField;
int a = new Generic<Integer>().basicField;
int b = new Generic<Integer>().itdField;
int c = new Generic().basicField;
int d = new Generic().itdField;
}
}
|