Community
Participate
Working Groups
This is 3.1 M2. Given the following interface and class: public interface Interface { public <T extends Interface> T[] foo(Class<T> c); } public class Impl implements Interface { public <T extends Interface> T[] foo(Class<T> c) ~~~~~~~~~~~~~~~ { return null; } } The editor underlines the implementation method (as shown above) and complains "The return type is incompatible with Interface.foo(Class<T>)". However the Problems View does not show the error, and this code compiles successfully on command line.
Suspecting SourceTypeConverter that doesn't recreate the correct ast.
Problem is in SourceTypeConverter#createTypeParameter(...) that doesn't set the type field on the TypeParameter.
Created attachment 15600 [details] Proposed fix
Created attachment 15601 [details] Proposed regression test
Ok for including in M3
Released proposed patch and regression test.
Verified for 3.1 M3 with build I200411040010 + jdt.core HEAD