Bug 43872

Summary: Hierarchy does not update properly when local class eliminated [type hierarchy]
Product: [Eclipse Project] JDT Reporter: Nick Edgar <n.a.edgar>
Component: CoreAssignee: Jerome Lanneluc <jerome_lanneluc>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: martinae
Version: 3.0   
Target Milestone: 3.0 M4   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Nick Edgar CLA 2003-09-29 17:15:37 EDT
build I20030927

- open hierarchy on ViewerSorter
- change ViewerSorter to be non-abstract and have public constructors
- select first "Anonymous of ViewerSorter" subclass (in ProjectReferencePage)
- change it to call the 0-arg constructor, rather than creating an anonymous 
subclass
- save
- the hierarchy updates to show "Anonymous of ICheckStateListener", which is 
the next anonymous class in ProjectReferencePage
Comment 1 Nick Edgar CLA 2003-09-29 17:16:44 EDT
If there is no subsequent anonymous class, the label in the hierarchy becomes 
blank.
Comment 2 Dirk Baeumer CLA 2003-09-29 17:24:44 EDT
Martin, this is a know JDT core limitation in M4. Right ?
Comment 3 Martin Aeschlimann CLA 2003-09-30 13:46:38 EDT
Was able to reproduce.
It seems that the type hierarchy does not get notified that it changed.
The hierarchy still reacts to the Java element delta and refreshes. The label
gets empty as the type does not exist any more. If there is a subsequest
anonymous type the handle is still able to resolve as the two types are equal in
the model.

Moving to jdt.core
Comment 4 Jerome Lanneluc CLA 2003-10-01 07:10:28 EDT
Added support in TypeHierarchy to handle local and anonymous type changes.
Comment 5 David Audel CLA 2003-10-13 05:47:23 EDT
Verified.