Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 324429

Summary: [navigation] Quick Hierarchy fails when selected element is type parameter
Product: [Eclipse Project] JDT Reporter: Markus Keller <markus.kell.r>
Component: TextAssignee: Markus Keller <markus.kell.r>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.7   
Target Milestone: 3.7 M2   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Markus Keller CLA 2010-09-03 10:34:34 EDT
HEAD

Quick Hierarchy fails when the selected element is a type parameter:

!ENTRY org.eclipse.jdt.ui 4 10001 2010-09-03 16:26:04.762
!MESSAGE Element unsupported by the hierarchy: class org.eclipse.jdt.internal.core.TypeParameter


Test case:

package api;
public class Bongo<Element> {
	Element fElement;

	public Element getElement() {
		return fElement;
	}

	public void setElement(Element element) {
		fElement = element;
	}
	
	
	public static void main(String[] args) {
		
	}
}
Comment 1 Markus Keller CLA 2010-09-03 10:52:08 EDT
Fixed in HEAD of JavaElementProvider and HierarchyInformationControl (the latter is not strictly necessary, but completes the switch statement).