Community
Participate
Working Groups
This method is legal according to the JLS (15.12.2.8) and compiles with 3.1.0: public List<? extends String> getList() { return Collections.emptyList(); } In 3.1.1 build M20050929-0840 it gives the following error: Type mismatch: cannot convert from List<Object> to List<? extends String> If the method returns List<String> there is no problem.
This is a dup, and got fixed in 3.1.2 update. *** This bug has been marked as a duplicate of 112268 ***