Bug 5557 - Incorrect hierarchy shown (not rooted at Object)
Summary: Incorrect hierarchy shown (not rooted at Object)
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 1.0   Edit
Hardware: PC Windows 2000
: P1 normal (vote)
Target Milestone: 2.0 M1   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 5850 (view as bug list)
Depends on:
Blocks:
 
Reported: 2001-11-05 21:00 EST by James Moody CLA
Modified: 2002-01-11 09:22 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description James Moody CLA 2001-11-05 21:00:34 EST
I opened a hierarchy on CellEditor in the jface package. I got the following 
structure in the hierarchy view (the first few classes are not rooted at 
Object, and they come from javax.swing).

+-AbstractCellEditor
| +-DefaultCellEditor
|   +-BooleanEditor
|   +-GenericEditor
|     +-NumberEditor
+-DefaultTreeCellEditor
+-Object
  +-CellEditor
    +-CheckboxCellEditor
    ... (from here on is correct)
Comment 1 Martin Aeschlimann CLA 2001-11-12 11:05:55 EST
I use ITypeHierarchy.getRootClasses, which should only return Object.
Moving to JCore.
Comment 2 Jerome Lanneluc CLA 2001-11-13 06:58:54 EST
I could not reproduce neither in 1.0, nor in latest. This kind of problem is 
really dependent on the setup of the workspace.
However it looks like a duplicate of bug 5522 which is going to be fix in next 
integration build (20011113 ?). Could you please try it with this build?
Comment 3 Martin Aeschlimann CLA 2001-11-19 08:49:45 EST
*** Bug 5850 has been marked as a duplicate of this bug. ***
Comment 4 Martin Aeschlimann CLA 2001-11-19 08:52:03 EST
i added a fix in our code to handle the case where multiple roots are returned.
(Search for object and return it, or if not found, return all the roots)
Comment 5 Jerome Lanneluc CLA 2001-11-20 12:57:38 EST
With Martin's fix and the fix for bug 5522, I believe this cannot happen any 
longer.

Closing. (Please re-open if you see the problem again.)