Community
Participate
Working Groups
Version: 3.1M4 (or others ?) interface Foo<T extends Foo> { T foo(); } class FooImpl implements Foo<FooImpl> { public FooImpl foo() { // Here I get a warning return null; } } Here is the warning JDT reported: Type safety: The return type FooImpl of the method foo() of type FooImpl needs unchecked conversion to conform to the return type T of inherited method According to the draft of the JLS 3rd edition and the javac (of Sun jdk1.5.0), there should be no error or warning.
Please do not change our prefix in summary. This is our internal way to classify them. This 1.5 because this classification was done before 1.5 becomes 5.0. If you change it, our bugzilla requests will not return the right list and your bug may be missed... Also do not change target, this is owner responsibility. When it will be set, this informs you in which milestone this bug will be fixed... Thanks
This was fixed just after M4. Added MethodVerify test028.
Verified in I20050214-0927