Bug 23644

Summary: hierarchy: getAllSuperTypes does not include all superinterfaces?
Product: [Eclipse Project] JDT Reporter: Adam Kiezun <akiezun>
Component: CoreAssignee: Jerome Lanneluc <jerome_lanneluc>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0   
Target Milestone: 2.1 M2   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Adam Kiezun CLA 2002-09-17 10:45:47 EDT
given the following type hierarchy

interface I
interface I1
class A implements I
class B extends A implements I1

now, create a newSuperTypeHierarchy on B
then ask for allSuperTypes of B

the result includes neither I1 nor Object

strangely enough, if A does not implement I, then getAllSupertypes(B) will 
return A, I1, Object
Comment 1 Adam Kiezun CLA 2002-09-17 11:06:16 EDT
actually, the interface I is not even present in the hierarchy object at all.
and both A and Obejct are 'root classes'
that all sounds incorrect.

do i have to create multiple hierarchies to get all supertypes of a type?
Comment 2 Philipe Mulet CLA 2002-09-19 08:44:40 EDT
Sounds weird indeed.
Comment 3 Jerome Lanneluc CLA 2002-09-30 06:23:34 EDT
This works for me. Released TypeHierarchyTests.testGetAllSupertypes2() to 
ensure it.
Do you have more details?
Comment 4 Jerome Lanneluc CLA 2002-10-07 08:41:50 EDT
Please reopen if you have more details.