Community
Participate
Working Groups
Trying to compile the attached code yields: -------------------------------------------------------------------------- 1. ERROR in Bug7.java (at line 19) protected List<Bar<? extends SubFoo>> get() { return null; } ^^^^^^^^^^^^^^^^^^^^^^^^^^^ The return type is incompatible with Bug7.AbstractTest<Bug7.SubFoo>.get() -------------------------------------------------------------------------- which intuitively should not be an issue. javac accepts this code and the problem goes away if Bar is promoted from an inner class of AbstractTest to a stand-alone class at the same level as the others.
Created attachment 87975 [details] The test case.
This is another symptom of bug 216565. *** This bug has been marked as a duplicate of bug 216565 ***
Added GenericTypeTest#test1267
Verified for 3.4M5 using build I20080204-0010