Bug 207775 - incomplete source range for anonymous type
Summary: incomplete source range for anonymous type
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.4   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.4 M4   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-29 09:40 EDT by Markus Keller CLA
Modified: 2007-12-12 02:35 EST (History)
1 user (show)

See Also:


Attachments
Proposed fix and regression test (3.87 KB, patch)
2007-11-29 10:50 EST, Jerome Lanneluc CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.