blob: 13f58b3652616fe70c64b61ec86058d908d4f826 (
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
|
class Generic_Parent<T> {}
class Child extends Generic_Parent<Integer> {}
class Generic_Child<T> extends Generic_Parent<Integer> {}
public aspect pr100260 {
public void Generic_Parent.inherited_method() {}
public int Generic_Parent.inherited_field;
public static void test() {
int inherited_field;
inherited_field = new Generic_Child().inherited_field; // works
inherited_field = new Generic_Child<Integer>().inherited_field; // works
inherited_field = new Child().inherited_field; // works
new Generic_Child().inherited_method(); // works
new Generic_Child<Integer>().inherited_method(); // unresolved
new Child().inherited_method(); // unresolved
}
public static void main(String []argv) {
test();
}
}
|