Bug 45641 - CCE when using declarations view
Summary: CCE when using declarations view
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: 3.0 M5   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-27 19:08 EST by Kai-Uwe Maetzel CLA
Modified: 2003-11-20 10:24 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 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.