Bug 4917 - Latest build fails updating TypeHierarchy
Summary: Latest build fails updating TypeHierarchy
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P2 normal (vote)
Target Milestone: 2.0 M1   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-10-12 07:23 EDT by Martin Aeschlimann CLA
Modified: 2002-01-11 09:04 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 Martin Aeschlimann CLA 2001-10-12 07:23:07 EDT
204:
1. Create a type A
2. open it in TypeHierarchy
3. edit the type to extends from java.util.Vector
4. save.: Type Hierarchy does not change

From debugging I see that no typeHierarchyChanged is received 
(TypeHierarchyLifeCycle)

From debugging I see that the Java Element delta sent for the save ends
at the CompilationUnit. No affected childern.
Comment 1 Jerome Lanneluc CLA 2001-10-18 05:47:00 EDT
The isAffectedByType(IJavaElementDelta delta, IJavaElement element) method was 
not taking the direct super type into account. It worked in R1.0 because 
java.lang.Object was always included in the hierarchy. Now it is included only 
if explicitely referenced.

Fixed isAffectedByType(IJavaElementDelta delta, IJavaElement element) to use 
includesTypeOrSupertype(IType) instead of includesSupertypeOf(IType).

Added TypeHierarchyNotificationTests.testAddExtendsSourceType().