Community
Participate
Working Groups
Using 200409070800 patched with org.eclipse.jdt.core v_507. In a project I have created following class/interface: A.java: public class A {} I.java: public interface I<T> {} C.java public class C implements I<A> {} I build all and get no error in Problems view: everything is fine :-) I open C.java file and see that there's an error in it: I is underlined and hover text is: "The type I is not generic; it cannot be parameterized with arguments <A>", which is obviously an inappropriate error message...
Created attachment 14534 [details] Add type parameters notification for interfaces Looking at this problem, it seems that SourceElementParser does not notify SourceElementRequestor with typeParameters for interfaces although it is correctly done for classes. Note that v_507 is not mandatory, this bug also occurs in last integration build...
Fixed. SourceElementParser now correctly notifies type parameters to requestors for interfaces and so no error are displayed in editor... [jdt-core-internal] Patch file applied. Test case testTypeParameterBug73884 added in GetSourceTests
Verified in I200409230100.