Bug 82004 - [model][5.0] 3.1M4 type hierarchy for generic interface
Summary: [model][5.0] 3.1M4 type hierarchy for generic interface
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 M5   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-29 16:13 EST by mike andrews CLA
Modified: 2005-02-15 06:22 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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