Bug 23644 - hierarchy: getAllSuperTypes does not include all superinterfaces?
Summary: hierarchy: getAllSuperTypes does not include all superinterfaces?
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 2.1 M2   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-09-17 10:45 EDT by Adam Kiezun CLA
Modified: 2002-10-07 08:41 EDT (History)
0 users

See Also:


Attachments

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