Bug 73884 - [1.5] Unexpected error for class implementing generic interface
Summary: [1.5] Unexpected error for class implementing generic interface
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 M2   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-14 11:45 EDT by Frederic Fusier CLA
Modified: 2004-09-23 10:44 EDT (History)
0 users

See Also:


Attachments
Add type parameters notification for interfaces (858 bytes, patch)
2004-09-14 11:51 EDT, Frederic Fusier CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Frederic Fusier CLA 2004-09-14 11:45:22 EDT
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...
Comment 1 Frederic Fusier CLA 2004-09-14 11:51:46 EDT
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...
Comment 2 Frederic Fusier CLA 2004-09-15 05:49:34 EDT
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
Comment 3 David Audel CLA 2004-09-23 10:44:55 EDT
Verified in I200409230100.