mirror of
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-08-15 02:13:50 +02:00
26 lines
754 B
Plaintext
26 lines
754 B
Plaintext
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();
|
|
}
|
|
}
|