Bug 111396

Summary: TypeHierarchy doesn't notify listeners on addition of fully qualified subtypes
Product: [Eclipse Project] JDT Reporter: Emerson Murphy-Hill <captain.emerson>
Component: CoreAssignee: Jerome Lanneluc <jerome_lanneluc>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.1.1   
Target Milestone: 3.2 M3   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Emerson Murphy-Hill CLA 2005-10-03 19:21:19 EDT
To demonstrate:
1) Create new A.java in package testpackage:
package testpackage;

public class A {}
class B{}
2) Open Type Hierarchy on class A
3) Change definition of B to:
class B extends testpackage.A

What happens: Hierarchy does not display B as a subtype of A.
Expected: B displayed as subtype of A.
Comment 1 Jerome Lanneluc CLA 2005-10-04 09:32:09 EDT
Fixed TypeHierarchy#includesTypeOrSupertype(IType) to correctly extract the
simple name (it was wrongly including the dot).

Added regression test TypeHierarchyNotificationTests#testAddExtendsSourceType3().
Comment 2 Olivier Thomann CLA 2005-10-28 11:42:47 EDT
Verified for 3.2 M3 using build I20051025-0800+JDT/Core v_618a