Bug 207775

Summary: incomplete source range for anonymous type
Product: [Eclipse Project] JDT Reporter: Markus Keller <markus.kell.r>
Component: CoreAssignee: Jerome Lanneluc <jerome_lanneluc>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: jerome_lanneluc
Version: 3.4   
Target Milestone: 3.4 M4   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Proposed fix and regression test none

Description Markus Keller CLA 2007-10-29 09:40:28 EDT
I20071029-0010

ISourceReference#getSourceRange() is incomplete for an anonymous type:

- have:
	void m() {
		new Object() { };
	}

=> was:          "Object() { }"
=> expected: "new Object() { }"
Comment 1 Jerome Lanneluc CLA 2007-11-29 10:50:00 EST
Created attachment 84065 [details]
Proposed fix and regression test
Comment 2 Jerome Lanneluc CLA 2007-11-30 06:49:03 EST
Fix and test released for 3.4M4
Comment 3 Maxime Daniel CLA 2007-12-12 02:35:54 EST
Verified for 3.4 M4 using build I20071211-0010.