Bug 4385

Summary: QualifiedAllocationExpression.sourceEnd incorrect if type is an AnonymousLocalTypeDeclaration
Product: [Eclipse Project] JDT Reporter: Dirk Baeumer <dirk_baeumer>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P2    
Version: 2.0   
Target Milestone: 2.0 M1   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Dirk Baeumer CLA 2001-10-11 11:41:42 EDT
Consider the following source:

		Protectable p= new Protectable() {
			public void protect() throws Exception {
				setUp();
				basicRun(result);
				tearDown();
			}
		};

SourceEnd of the QualifiedAllocationExpression new Protectable is the e of
Protectable and not the closing } of the type declaration
Comment 1 Olivier Thomann CLA 2001-10-12 11:38:10 EDT
Missing to change the sourceEnd of the QualifiedAllocationExpression in the 
parser when setting the declaration source end of the anonymous type 
declaration.
Fixed into HEAD.
Comment 2 Philipe Mulet CLA 2001-10-15 04:09:49 EDT
Fixed