Bug 45641

Summary: CCE when using declarations view
Product: [Eclipse Project] JDT Reporter: Kai-Uwe Maetzel <kai-uwe_maetzel>
Component: CoreAssignee: Jerome Lanneluc <jerome_lanneluc>
Status: VERIFIED FIXED QA Contact:
Severity: major    
Priority: P3    
Version: 3.0   
Target Milestone: 3.0 M5   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Kai-Uwe Maetzel CLA 2003-10-27 19:08:25 EST
I20031023 + preview core 20031027

1) open Java editor
2) open Java declarations view
3) set caret into a local variable identifier

java.lang.ClassCastException
	at org.eclipse.jdt.internal.core.JavaElement.getOpenableParent
(JavaElement.java:370)
	at org.eclipse.jdt.internal.core.LocalVariable.getSource
(LocalVariable.java:127)
	at org.eclipse.jdt.internal.ui.infoviews.SourceView.computeInput
(SourceView.java:370)
	at org.eclipse.jdt.internal.ui.infoviews.AbstractInfoView$2.run
(AbstractInfoView.java:420)
Comment 1 Philipe Mulet CLA 2003-10-28 07:04:46 EST
Fixed by asking the parent for the openable parent.
Comment 2 David Audel CLA 2003-11-20 10:24:44 EST
Verified.