Bug 45786 - No selection on method declaration in field initializer
Summary: No selection on method declaration in field initializer
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 M5   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-30 07:31 EST by Jerome Lanneluc CLA
Modified: 2003-11-20 11:00 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 Jerome Lanneluc CLA 2003-10-30 07:31:09 EST
Build 20031029

In the following class:
public class X {
	Object field = new Object() {
		void foo() {
		}
	};
}
select foo and press F3. No Java element is found.
Comment 1 Jerome Lanneluc CLA 2003-10-30 08:00:04 EST
Renamed Engine.parseMethod(...) to parseBlockStatements(...) and changed it to 
return a field declaration (without parsing it) and not only methods and 
intializers.

Added regression test ResolveTest.testMethodDeclarationInAnonymous2()
Comment 2 David Audel CLA 2003-11-20 11:00:33 EST
Verified.