Bug 82004

Summary: [model][5.0] 3.1M4 type hierarchy for generic interface
Product: [Eclipse Project] JDT Reporter: mike andrews <mandrews>
Component: CoreAssignee: Jerome Lanneluc <jerome_lanneluc>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.1   
Target Milestone: 3.1 M5   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description mike andrews CLA 2004-12-29 16:13:21 EST
type hierarchy does not find implementation of generic interface. consider
following two classes:

package test;

public interface Inf<V> {

    public V get();
    
}


package test;

public class Test<V> implements Inf<V> {

    public V get() {
        return null;
    }

}


invoke 'type hierarchy' on 'Inf' in the first class, and it does not show 'Test'
as an implementation, as it should.
Comment 1 Jerome Lanneluc CLA 2005-01-05 04:37:26 EST
Changed AbstractIndexer#addClassDeclaration, addEnumDeclaration and
addInterfaceDeclaration to take the erasure of the super interface (instead of
the  name with arguments).
Incremented DiskIndex#SIGNATURE so that indexes are recreated.

Added regression test TypeHierarchyTests#testGeneric5
Comment 2 David Audel CLA 2005-02-15 06:22:20 EST
Verified in I20050214-0927