Bug 47214 - Cannot open declaration on a selected method of an anonymous class
Summary: Cannot open declaration on a selected method of an anonymous class
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 3.0 M6   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-21 07:38 EST by Frederic Fusier CLA
Modified: 2003-12-17 06:02 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 Frederic Fusier CLA 2003-11-21 07:38:28 EST
While trying to open the declaration on a selected method of an anonymous 
class, I get following message in the status bar: 'Current text selection 
doesn't resolve to a Java Element'.

Seems to be similar to bug 47177 but for LocalTypeDeclaration instead of 
MemberTypeDeclaration.
Comment 1 Frederic Fusier CLA 2003-12-12 06:37:18 EST
Additional info to help to reproduce the problem (sorry Jerome...):

The anonymous class should be edited in a binary file!

Test case which shows the problem for me:
having imported org.eclipse.jdt.ui as binary project in my workspace and edited 
OptionsConfigurationBlock class.
Looking at getSelectionListener() method and selecting widgetDefaultSelected 
method of the anonymous class made the error message appeared in status bar...
Comment 2 Jerome Lanneluc CLA 2003-12-15 07:36:54 EST
Rewrote HandleFactory. Need to add regression test.
Comment 3 Jerome Lanneluc CLA 2003-12-15 09:34:23 EST
Added regression test ResolveTests.testMethodDeclarationInAnonymous4()
Comment 4 Frederic Fusier CLA 2003-12-17 06:02:54 EST
Verified for 3.0 M6 with build I200312162000