class Generic_Parent {} class Child extends Generic_Parent {} class Generic_Child extends Generic_Parent {} 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().inherited_field; // works inherited_field = new Child().inherited_field; // works new Generic_Child().inherited_method(); // works new Generic_Child().inherited_method(); // unresolved new Child().inherited_method(); // unresolved } public static void main(String []argv) { test(); } }