Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 324429 - [navigation] Quick Hierarchy fails when selected element is type parameter
Summary: [navigation] Quick Hierarchy fails when selected element is type parameter
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.7   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 3.7 M2   Edit
Assignee: Markus Keller CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-03 10:34 EDT by Markus Keller CLA
Modified: 2010-09-03 10:52 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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).